mkimage-profiles/features.in/auto-resize/image-scripts.d/91-edit-fstab-growfs

6 lines
193 B
Bash
Executable File

#!/bin/sh -efu
# For resize rootfs with systemd-growfs@-.service
# set x-systemd.growfs option in /etc/fstab for rootfs
sed -i '/^LABEL=ROOT/s/defaults/defaults,x-systemd.growfs/' /etc/fstab