mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Update ynh-dev armhf wip4
This commit is contained in:
parent
d557bd391a
commit
dbad961abe
1 changed files with 5 additions and 5 deletions
10
ynh-dev
10
ynh-dev
|
@ -225,19 +225,19 @@ function rebuild_ynhdev()
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
sudo lxc info $BOX-rebuild >/dev/null && sudo lxc delete $BOX-rebuild --force
|
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 apt install debootstrap -y
|
||||||
sudo mkdir -p ~/lxc-images/debian-$DIST
|
sudo mkdir -p ~/lxc-images/debian-$DIST
|
||||||
sudo debootstrap $DIST ~/lxc-images/debian-$DIST
|
sudo debootstrap $DIST ~/lxc-images/debian-$DIST
|
||||||
sudo tar -cvzf rootfs.tar.gz -C ~/lxc-images/debian-$DIST
|
sudo tar -cvzf rootfs.tar.gz -C ~/lxc-images/debian-$DIST
|
||||||
sudo cat << EOF > ~/lxc-images/debian-$DIST/metadata.yaml
|
sudo cat << EOF > ~/lxc-images/debian-$DIST/metadata.yaml
|
||||||
architecture: "armhf"
|
|
||||||
creation_date: $(date +%s)
|
creation_date: $(date +%s)
|
||||||
properties:
|
properties:
|
||||||
architecture: "armhf"
|
architecture: "$ARCH"
|
||||||
description: "Debian ($DIST)"
|
description: "Yunohost Debian ($DIST)"
|
||||||
os: "debian"
|
os: "debian"
|
||||||
release: "bullseye"
|
release: "$DIST"
|
||||||
EOF
|
EOF
|
||||||
sudo tar -cvzf ~/lxc-images/debian-$DIST/metadata.tar.gz ~/lxc-images/debian-$DIST/metadata.yaml
|
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
|
sudo lxc image import ~/lxc-images/debian-$DIST/metadata.tar.gz ~/lxc-images/debian-$DIST/rootfs.tar.gz --alias $BOX-rebuild
|
||||||
|
|
Loading…
Add table
Reference in a new issue