Immutable Ubuntu with separate /usr partition #3198
-
Hi Community, I'm using grub as BooLoader and BiosBootLoader in my mkosi.conf and when I just use the esp, bios and root partition config for repart, the image can be booted sucessfully with qemu. But as soon as I add a repart config for Type=usr and use CopyFiles=/usr:/ the image won't boot anymore. mkosi.conf:
mkosi.repart/10-usr.conf
My process of building the image is the following:
This will start qemu and the boot is started, but after the initrd when systemd-switch-root trys to run systemd it fails and I drop into the emergency shell. I looked at journalctl -u systemd-switch-root.service and the error presented is that /etc/os-release cannot be found. This is probably, because /etc/os-release is just a symlink to ../usr/lib/os-release and /usr is not mounted in /sysroot/usr/. Therefore my question, if you are ok with answering, is: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think you'd better take a look at systemd/particleos . |
Beta Was this translation helpful? Give feedback.
-
@X4mp You will need to add |
Beta Was this translation helpful? Give feedback.
@X4mp You will need to add
mount.usr=PARTUUID
to the kernel command line at the very least so that mkosi will fill in the partuuid for you if you're not adding a usr verity partition. There might be other changes required because you're using grub instead of systemd-boot, you'll have to figure that out on your own as I don't know of anyone else running such a setup.