From dbad961abe6d84344e32f241f436b276b84b2d95 Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Sun, 12 Nov 2023 23:54:37 +0000 Subject: [PATCH] Update ynh-dev armhf wip4 --- ynh-dev | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ynh-dev b/ynh-dev index 5217458..f109d97 100755 --- a/ynh-dev +++ b/ynh-dev @@ -225,19 +225,19 @@ function rebuild_ynhdev() set -x sudo lxc info $BOX-rebuild >/dev/null && sudo lxc delete $BOX-rebuild --force - if [[ ${ARCH} eq "armhf" ]] + if [[ ${ARCH} -eq "armhf" ]] ; + then sudo apt install debootstrap -y sudo mkdir -p ~/lxc-images/debian-$DIST sudo debootstrap $DIST ~/lxc-images/debian-$DIST sudo tar -cvzf rootfs.tar.gz -C ~/lxc-images/debian-$DIST sudo cat << EOF > ~/lxc-images/debian-$DIST/metadata.yaml -architecture: "armhf" creation_date: $(date +%s) properties: -architecture: "armhf" -description: "Debian ($DIST)" +architecture: "$ARCH" +description: "Yunohost Debian ($DIST)" os: "debian" -release: "bullseye" +release: "$DIST" EOF sudo tar -cvzf ~/lxc-images/debian-$DIST/metadata.tar.gz ~/lxc-images/debian-$DIST/metadata.yaml sudo lxc image import ~/lxc-images/debian-$DIST/metadata.tar.gz ~/lxc-images/debian-$DIST/rootfs.tar.gz --alias $BOX-rebuild