Skip to content

Move initialisation of OSTree

The OSTree rootfs is currently being initialised during the "init-bottom" stage of the init scripts in the initramfs. This is problematic as this is also the stage where udev is mounted on the rootfs. Ordering between the scripts run in this stage is mostly left to tsort to decided during initramfs creation, as not requirements exist between the scripts, the ordering is some what arbitrary and the udev script has recently started to get run before the OSTree one. This is problematic as the udev script then (re)mounts devfs in the wrong location and it becomes unavailable in the rootfs, which breaks booting.

Instead of adding a requirement in the udev script (which would be hard to upstream to systemd as very few people would need such a requirment as they don't run OSTree and which might prove problematic at a later date in images we build without OSTree) move the OSTree script to the "local-bottom" stage, which is probably a more sensible location for it.

Fix a small spelling mistake in a comment in the script whilst we're here.

Signed-off-by: Martyn Welch martyn.welch@collabora.com

Merge request reports