1ed6e614ab
Check if root device was enlarged while domain was powered off and resize the filesystem in such a case. QubesOS/qubes-issues#3173 QubesOS/qubes-issues#3143
20 lines
544 B
Desktop File
20 lines
544 B
Desktop File
[Unit]
|
|
Description=Adjust root filesystem size
|
|
# There is a dependency on dev-xvdb.device because
|
|
# mount-dirs.sh calls setup-rwdev.sh which
|
|
# must happen only when /dev/xvdb has appeared.
|
|
After=qubes-sysinit.service dev-xvda.device
|
|
DefaultDependencies=no
|
|
Before=local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/lib/qubes/init/resize-rootfs-if-needed.sh
|
|
# There is no need for an ExecStop because systemd
|
|
# cleans up mount units in the right order, killing
|
|
# processes as needed.
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|