]> git.ipfire.org Git - thirdparty/dracut.git/commit
squash: also squash systemctl if switch-root is not needed
authorKairui Song <kasong@redhat.com>
Wed, 13 Mar 2019 09:36:53 +0000 (17:36 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 13:38:54 +0000 (15:38 +0200)
commit19e57585908694af7aa35f5d85527137174aca66
treef5749ec8680673ad89ee8da8fc2017649c47f255
parentf6bbd024d924a7865f95bf24a1c786af1746ad34
squash: also squash systemctl if switch-root is not needed

systemctl need to be accessible on switch-root, but we unmount the
squash image on switch-root, so it will fail. systemctl depends on a lot
of libraries, squash them can save more RAM. So allow modules
(eg. kdump) to tell dracut that switch-root will be intercepted,
then we don't need to take care of that.

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