]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto-generator: Use volatile-root by default and automatic logic as fallback
authorKristian Klausen <kristian@klausen.dk>
Mon, 30 Aug 2021 07:55:41 +0000 (09:55 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 04:52:52 +0000 (13:52 +0900)
commitb00651cf433012dea0c32db99af7cd0c542ea066
treec033cf8c6c7173418ce758406e8264ec2d92c89f
parentfb6ba2521cf2661a406936126ba07b9d740b5165
gpt-auto-generator: Use volatile-root by default and automatic logic as fallback

Previously volatile-root was only checked if "/" wasn't backed by a
block device, but the block device isn't necessarily original root block
device (ex: if the rootfs is copied to a ext4 fs backed by zram in the
initramfs), so we always want volatile-root checked.

So shuffle the code around so volatile-root is checked first and
fallback to the automatic logic.

Fix #20557
man/systemd-gpt-auto-generator.xml
src/gpt-auto-generator/gpt-auto-generator.c