Downsize / to 15G and grow it on firstboot

This commit is contained in:
Davide Cavalca 2022-11-04 17:22:10 +00:00
parent 80435b988d
commit 5ce683cdff
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<volume name="root"/> <volume name="root"/>
<volume name="var"/> <volume name="var"/>
</systemdisk> </systemdisk>
<size unit="G">20</size> <size unit="G">15</size>
<oemconfig> <oemconfig>
<oem-resize>false</oem-resize> <oem-resize>false</oem-resize>
</oemconfig> </oemconfig>

3
root/etc/fstab.script Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
gawk -i inplace '$2 == "/" { $4 = $4",x-systemd.growfs" } { print $0 }' /etc/fstab