On Tue, 1 Mar 2011 04:33:29 +0100, Wei Liang(David) wrote:
> Hi Natanael,
> Thank you very much for the message.
> What I just did is to install the btrfs-progs-0.19-r0.apk downloaded
> from "http://dl-3.alpinelinux.org/alpine/edge/x86/test " ,format
> partition as btrfs and mount it under /mnt. I did do this "
> echo "kernel/fs/btrfs" > /etc/mkinitfs/modules.d/btrfs
> # add btrfs to features in /etc/mkinitfs/mkinitfs.conf
> But when I type "setup-disk /mnt" ,I got " btrfs is not supported.
> ext2 and ext3 are supported". Does it mean that I need to update some
> Thank you very much again!
Yes. you will need alpine-conf-2.6 (which is not yet released). You can
easily grab it from git though:
sh setup-disk.in /mnt
That said, I also found out that the crc32c kernel module needs to be
in the initramfs module. I think its not a dependency due to there are 2
ifferent crc32c modules (crc32c and crc32c-intel) where -intel variant
is available when sse4 is enabled.
So to conclude:
# boot up 2.1.4 iso
# config basics
# add edge repos
# upgrade (you might need do an apk-tools workaround which I skip here)
# install needed tools. mkinitfs is for our config modification
apk add mkinitfs e2fsprogs btrfs-progs
# add btrfs modules to mkinitfs + needed crc32c
echo "kernel/crypto/crc32c*" > /etc/mkinitfs/modules.d/btrfs
echo "kernel/fs/btrfs" >> /etc/mkinitfs/modules.d/btrfs
# create partitions (mark sda1 as bootable)
# in this example I have sda1=/boot, sda2=swap and sda3=/
# create filesystems
# mount filesystems
mount -t btrfs /dev/sda3 /mnt
mount -t ext3 /mnt/boot
# get latest setup-disk from git:
# install system on mounted /mnt
sh setup-disk.in -v /mnt
# umount and reboot. remove cdrom
umount /mnt/boot /mnt
I will add btrfs support to mkinitfs and release alpine-conf (with the
mentioned setup-disk) asap.
btw, I think putting / on lvm should work too.
Received on Tue Mar 01 2011 - 13:11:29 UTC