build.sh: Include the domotoca image in the installer so it can be installed
authorKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:30:36 +0000 (11:30 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:30:36 +0000 (11:30 +0200)
image/build.sh

index ea626f7..66234c1 100755 (executable)
@@ -9,16 +9,19 @@ PACKAGES=packagelist
 poudriere bulk \
        -j $JAIL -p $PORTS -f $PACKAGES
 
-poudriere image \
-       -j $JAIL -p $PORTS -f $PACKAGES \
-       -b \
-       -c overlay/installer \
-       -n installer \
-       -s 4g -t usb
-
 poudriere image \
        -j $JAIL -p $PORTS -f $PACKAGES \
        -b \
        -c overlay/domotica \
        -n domotica \
        -s 3g -t usb
+
+# Put the domotica image in the installer overlay
+xz -v -z -c /usr/local/poudriere/data/images/domotica.img > overlay/installer/domotica.img.xz
+
+poudriere image \
+       -j $JAIL -p $PORTS -f $PACKAGES \
+       -w 0 \
+       -c overlay/installer \
+       -n installer \
+       -s 4g -t usb