On Jun 24, 2014, at 2:12 AM, Colin Guthrie <gm...@colin.guthr.ie> wrote: > > Well, the initramfs should mount the rootfs readonly, and then it can > read it's /etc/fstab (and the /forcefsck file) and determine if any > further action should be taken before doing any kind of pivotroot type > stuff to transition to the host OS. This should all be handled by your > initramfs really. Not sure what systemd bits do that in a systemd+dracut > combo tho', as not fiddled with it for a while!
These are selective extractions, but are in order. I see no evidence the initramfs attempts to mount root. The first mount that happens is initiated by systemd. [ 1.156856] rawhide.localdomain systemd[1]: Failed to load configuration for systemd-fsck-root.service: No such file or directory [ 1.158494] rawhide.localdomain systemd[1]: Installed new job sysroot.mount/start as 30 [ 1.158510] rawhide.localdomain systemd[1]: Installed new job systemd-fsck@dev-disk-by\x2duuid-d372e5d1\x2d386f\x2d460c\x2db036\x2d611469e0155e.service/start as 32 [ 1.591769] rawhide.localdomain systemd[1]: About to execute: /bin/mount /dev/disk/by-uuid/d372e5d1-386f-460c-b036-611469e0155e /sysroot -t auto -o subvol=root,ro [ 1.591940] rawhide.localdomain systemd[1]: Forked /bin/mount as 165 [ 1.592109] rawhide.localdomain systemd[1]: sysroot.mount changed dead -> mounting [ 1.592299] rawhide.localdomain systemd[165]: Executing: /bin/mount /dev/disk/by-uuid/d372e5d1-386f-460c-b036-611469e0155e /sysroot -t auto -o subvol=root,ro If I use rd.break on kernel command line, the fsck job was initiated well before /sysroot was mounted ro. Chris Murphy _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel