[blfs-support] initramfs
Out of interest I've just read the above page in the book. I *don't* use an initramfs, but I do have a rootfs mounted on a btrfs subvolume (similar in some ways to LVM). I have a GPT boot partition formatted with ext2 on a USB flash drive, and I'm using syslinux as a boot loader. In case others are looking to boot a rootfs on a btrfs subvolume I just thought that I should report here that it is possible to do this *without* an initramfs. Richard -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] Initramfs, systemd. No /dev/mapper/* symlinks
On Sat, Jul 20, 2013 at 11:27 PM, Nathan Coulson wrote: > I build a nice new shiny systemd build (my first "bootable" attempt). > My root (and a few other partitions) are on a lvm partition, sitting > on top of a mdraid1 array. > > When it boots the initramfs mounts root just fine, > (root=/dev/ssd.vg/root), but the system only has /dev/mapper/control > (when I would expect a ton of symlinks for each partition tracked by > devicemapper). Typing in dmset mknodes does recreate them though. > > > I tested it on my existing LFS System (Similar, except root is on it's > own partition, instead of the lvm on mdraid0, but it still mounts the > partitions in the lvm in the mount bootscript) and it works fine. > > > > > (Also, sleep is now in usr//bin/sleep, while udevadm is in /bin, but > doing more testing before I bring that up) > > -- > Nathan Coulson (conathan) Found a couple systemd scripts in lvm (Installed via make install_systemd_generators, and install_systemd_units), although there is a hardcoded path to lvm. I fixed it with a ln -s /sbin/lvm /usr/sbin/lvm, but could also be fixed with a sed against lvm2_activation_generator_systemd_red_hat.c. (I have not poked at it too deeply, but the generators look like they are responsible for vgchange. I think the units are for monitoring [again, new to systemd]) -- Nathan Coulson (conathan) -- Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[blfs-support] Initramfs, systemd. No /dev/mapper/* symlinks
I build a nice new shiny systemd build (my first "bootable" attempt). My root (and a few other partitions) are on a lvm partition, sitting on top of a mdraid1 array. When it boots the initramfs mounts root just fine, (root=/dev/ssd.vg/root), but the system only has /dev/mapper/control (when I would expect a ton of symlinks for each partition tracked by devicemapper). Typing in dmset mknodes does recreate them though. I tested it on my existing LFS System (Similar, except root is on it's own partition, instead of the lvm on mdraid0, but it still mounts the partitions in the lvm in the mount bootscript) and it works fine. (Also, sleep is now in usr//bin/sleep, while udevadm is in /bin, but doing more testing before I bring that up) -- Nathan Coulson (conathan) -- Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] initramfs mistake
xinglp wrote: > do_mount_root() > { >mkdir /.root >[ -n "$rootflags" ] && rootflags="$rootflags," >rootflags="$rootflags$ro" > >case "$root" in > /dev/* ) device=$root ;; > UUID=* ) eval $root; device="/dev/disk/by-uuid/$UUID" ;; > LABEL=*) eval $root; device="/dev/disk/by-uuid/$LABEL" ;; > > > LABEL=*) eval $root; device="/dev/disk/by-label/$LABEL" ;; Fixed. Thanks. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[blfs-support] initramfs mistake
do_mount_root() { mkdir /.root [ -n "$rootflags" ] && rootflags="$rootflags," rootflags="$rootflags$ro" case "$root" in /dev/* ) device=$root ;; UUID=* ) eval $root; device="/dev/disk/by-uuid/$UUID" ;; LABEL=*) eval $root; device="/dev/disk/by-uuid/$LABEL" ;; > LABEL=*) eval $root; device="/dev/disk/by-label/$LABEL" ;; -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page