On Thu, 2012-04-12 at 11:08 +0530, Kashyap Chamarthy wrote: > On 04/12/2012 06:41 AM, David Lehman wrote: > > On Wed, 2012-04-11 at 11:08 +0530, Kashyap Chamarthy wrote: > >>> > >>> I'm going give it a try w/ btrfs partitioning. Meanwhile, I wasn't keeping up. Can someone > >>> confirm, does /boot still need to be ext3/ext4 for btrfs to work? > >>> > >> > >> > >> Ok, I gave it a try w/ the below command line, and an error "you have not created a > >> bootloader stage1 target device. This can happen if there is not enough space on your > >> harddrive for your installation" > >> > >> Really? There is plenty of space on the disk. > >> > >> Screenshot of the text install error --> > >> http://kashyapc.fedorapeople.org/f17-btrfs-install.png > >> > >> Any hints? > > > > Here's a hint: try this instead of the clearpart and part commands you > > used below: > > > > clearpart --all --initlabel > > autopart --type=btrfs > > Thanks David, that resolved it. True, I was not paying attention to the partition layout. > > ##################################################################### > [root@foobar ~]# df -hT > Filesystem Type Size Used Avail Use% Mounted on > rootfs rootfs 16G 818M 13G 6% / > devtmpfs devtmpfs 994M 0 994M 0% /dev > tmpfs tmpfs 1003M 0 1003M 0% /dev/shm > tmpfs tmpfs 1003M 724K 1002M 1% /run > /dev/sda4 btrfs 16G 818M 13G 6% / > tmpfs tmpfs 1003M 0 1003M 0% /sys/fs/cgroup > tmpfs tmpfs 1003M 0 1003M 0% /media > /dev/sda4 btrfs 16G 818M 13G 6% /home > /dev/sda2 ext4 497M 48M 425M 11% /boot > ##################################################################### > [root@foobar ~]# cat /etc/fedora-release ; arch > Fedora release 17 (Beefy Miracle) > x86_64 > [root@foobar ~]# > ##################################################################### > > Answering my own earlier question, so yes, /boot still needs ext4. I believe it is possible to use btrfs for /boot, but it must be the main volume (not a subvolume). The automatic btrfs layout is similar to how we do the lvm automatic partitioning. You'll get one btrfs partition on each disk with enough space (just sda4 in your case), and these are combined to form a single btrfs volume/filesystem. Subvolumes are created for / and /home. The main volume is not mounted directly. /boot (ext4) is a regular partition, as is swap. If grub2 learns how to identify subvolumes we will probably move /boot into the btrfs volume as well. > > > Reposting my kickstart: > ###################################### > install > text > lang en_US.UTF-8 > keyboard us > rootpw testpwd > firewall --service=ssh > authconfig --enableshadow --passalgo=sha512 > selinux --enforcing > timezone --utc Asia/Kolkata > bootloader --location=mbr --driveorder=sda --append="rhgb console=tty0 > console=ttyS0,115200 rd_NO_PLYMOUTH" > zerombr > clearpart --all --initlabel > autopart --type=btrfs > > %packages > @core > @editors > %end > ###################################### > > Also, to fix the serial console line-break issue, I disabled the plymouth service : > > $ ln -s /dev/null /etc/systemd/system/plymouth-start.service > > > > > >> > >> > >> ==> virt-install cmdline <== > >> ######################################################################################### > >> $ virt-install --connect=qemu:///system \ > >> --network=bridge:br0 \ > >> --initrd-inject=./ks-with-btrfs.ks \ > >> --extra-args="ks=file:/ks-with-btrfs.ks console=tty0 console=ttyS0,115200 > >> root=live:http://dl.fedoraproject.org/pub/alt/stage/17-Beta.RC4/Fedora/x86_64/os/LiveOS/squashfs.img" > >> \ > >> --name=f17t1 \ > >> --disk /export/vmimgs/f17t1.img,size=20 \ > >> --ram 2048 \ > >> --vcpus=2 \ > >> --check-cpu \ > >> --accelerate \ > >> --hvm \ > >> --location=http://dl.fedoraproject.org/pub/fedora/linux/development/17/x86_64/os/ \ > >> --nographics > >> ######################################################################################### > >> > >> => Contents of my btrfs ks file <= > >> ######################################################################################### > >> $ cat ks-with-btrfs.ks > >> ## A minimal fedora kickstart file > >> > >> install > >> text > >> lang en_US.UTF-8 > >> keyboard us > >> rootpw testpwd > >> firewall --service=ssh > >> authconfig --enableshadow --passalgo=sha512 > >> selinux --enforcing > >> timezone --utc Asia/Kolkata > >> bootloader --location=mbr --driveorder=sda --append="rhgb console=tty0 > >> console=ttyS0,115200 rd_NO_PLYMOUTH" > >> zerombr > >> clearpart --initlabel > >> part /boot --fstype ext4 --size=600 > >> part / --fstype btrfs --size=14000 > >> > >> > >> %packages > >> @core > >> @editors > >> %end > >> ######################################################################################### > >> > >> > >>> > >>> Thanks, > >>> /kashyap > >>>> > >>>> it was a bit better with live - I was able to play with > >>>> filesystems without the installer crashing, however, I could not > >>>> install on btrfs as the target filesystem has to match the live > >>>> image > >>>> > >>>> there may have been some fixes since ... > >>>> > >>>> K. > >>>> > >>>> > >>>> > >>>> > >>> > >> > > > > > > > -- test mailing list test@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test