Update and provision cache.

Also resize the image (and root filesystem) to ensure enough space is
available.
This commit is contained in:
Cyril Brulebois 2024-08-12 17:19:17 +02:00
parent a731b51324
commit c748d2d399
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# This recipe is sourced by the toaster, don't try to run it!
resize_me() {
echo "2000"
}
# shellcheck disable=SC2086
toast_me() {
echo "nameserver 1.1.1.1" > $MNT/etc/resolv.conf
@ -37,4 +41,8 @@ toast_me() {
# Make initial installation easier on users:
install -m 755 -o root -g root files/avoid-debconf-prompts $MNT/root/avoid-debconf-prompts
chroot $MNT /root/avoid-debconf-prompts && rm -f $MNT/root/avoid-debconf-prompts
# Update and provision cache
chroot $MNT apt-get update
chroot $MNT apt-get install -y pirogue-base --download-only
}

View File

@ -1,5 +1,9 @@
# This recipe is sourced by the toaster, don't try to run it!
resize_me() {
echo "2000"
}
# shellcheck disable=SC2086
toast_me() {
echo "nameserver 1.1.1.1" > $MNT/etc/resolv.conf
@ -70,4 +74,8 @@ toast_me() {
rm -f $MNT/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
### END: Pi 5 section
# Update and provision cache
chroot $MNT apt-get update
chroot $MNT apt-get install -y pirogue-base --download-only
}