]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(fips): only unmount /boot if it was mounted by the fips module
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 27 Dec 2022 08:30:09 +0000 (09:30 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 13 Feb 2023 12:00:01 +0000 (12:00 +0000)
commitab26ad2c2ab4a5884e392951998d40829f130387
treec908a8c95d459148a5fe08bc824fa0e8ea973e7b
parent68d0653e35f79e78b75a71c122c091ba4f4d5759
fix(fips): only unmount /boot if it was mounted by the fips module

The `do_fips` method should only unmount /boot if it was mounted in the
`mount_boot` method.

In addition, now the `mount_boot` method checks if /boot is already mounted.

Signed-off-by: Raymund Will <rw@suse.com>
modules.d/01fips/fips.sh