diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2025-06-19 18:15:10 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2025-06-19 18:15:10 +0000 |
| commit | e094f9015be16d07fe1c78c6eeaad73d1f8705ec (patch) | |
| tree | 89be323dfa96fe8ced8663a4b041d7210677e817 /release/tools | |
| parent | 8d51f2aba9ade8cfba84f18cfb0e20f321ae89c2 (diff) | |
Diffstat (limited to 'release/tools')
| -rw-r--r-- | release/tools/gce.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/tools/gce.conf b/release/tools/gce.conf index fc72b381a02d..382a839786f3 100644 --- a/release/tools/gce.conf +++ b/release/tools/gce.conf @@ -24,6 +24,8 @@ vm_extra_install_base() { } vm_extra_pre_umount() { + local DEVFSISOURS + # Enable growfs on every boot, not only the first, as as instance's disk can # be enlarged post-creation sed -i -e '/KEYWORD: firstboot/d' /etc/rc.d/growfs @@ -93,6 +95,7 @@ EOF # and fetch the sources for the third-party software installed on # the image. if [ ! -c "${DESTDIR}/dev/null" ]; then + DEVFSISOURS=1 mkdir -p ${DESTDIR}/dev mount -t devfs devfs ${DESTDIR}/dev fi @@ -107,7 +110,7 @@ EOF make -C /usr/ports/${PACKAGE} fetch done fi - if [ -c "${DESTDIR}/dev/null" ]; then + if [ "$DEVFSISOURS" = "1" ]; then umount_loop ${DESTDIR}/dev fi |
