2018-12-31 18:41:27 -05:00
|
|
|
[Unit]
|
|
|
|
Description=Mount citadel rootfs in install/live mode
|
|
|
|
DefaultDependencies=no
|
|
|
|
|
|
|
|
# Only run in initramfs
|
|
|
|
ConditionPathExists=/etc/initrd-release
|
|
|
|
|
|
|
|
# Only run in install or live mode
|
|
|
|
ConditionKernelCommandLine=|citadel.install
|
|
|
|
ConditionKernelCommandLine=|citadel.live
|
|
|
|
|
|
|
|
# Only run if root is set to this exact path
|
|
|
|
ConditionKernelCommandLine=root=/dev/mapper/rootfs
|
|
|
|
|
2019-08-21 00:46:12 -04:00
|
|
|
Wants=citadel-rootfs-setup.service
|
2018-12-31 18:41:27 -05:00
|
|
|
|
2019-01-15 12:29:02 -05:00
|
|
|
Requires=systemd-sysctl.service
|
|
|
|
After=systemd-sysctl.service
|
|
|
|
Before=citadel-rootfs-setup.service
|
2018-12-31 18:41:27 -05:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2019-01-15 14:13:56 -05:00
|
|
|
ExecStartPre=-/usr/bin/plymouth message --text="Copying files from boot disk and decompressing rootfs image"
|
2019-04-02 15:49:53 -04:00
|
|
|
ExecStart=/usr/libexec/citadel-boot rootfs
|