]> git.ipfire.org Git - thirdparty/dracut.git/commit
squash: squash systemd binary and udevadm
authorKairui Song <kasong@redhat.com>
Mon, 11 Mar 2019 10:44:02 +0000 (18:44 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 13:38:54 +0000 (15:38 +0200)
commitab703f44b41223e7d592f44fa1fe4f59ea3eb30f
tree4511d80c34fbcc52d992000077089e389db7ad2d
parenta0d9ad6f700b1f04bb9f3ac937d0b586a7881230
squash: squash systemd binary and udevadm

systemd binary and udevadm are not needed to be outside the squash
image. Some binaries are kept outside because they are required before
mounting the image, or after umounting the image (when switching root),
or they may block umounting the image. But we are using lazy umounting,
so actually nothing will block the umount.

Keep more binaries outside the squash image won't hurt but cost extra
memories, the idea of squash image is to save memory usage.

So, there is no reason to keep udevadm outside, that should be a debug
left over. For systemd binary, it's running when switch root happens,
But we have lazy umounted the image and overlay, once systemd process
exec the new systemd in new root, everything will be cleared by kernel.

Also tidy up the comment make it less confussing.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut.sh