Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Feb 26, 2024
1 parent d9a66a7 commit 9d75560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devtools/autoupload
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

find .|entr rsync -rvx . $1:alpinebox
find .|entr rsync -prvx . $1:alpinebox


8 changes: 4 additions & 4 deletions devtools/createimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ IMAGE_SIZE=3G
IMAGE=/tmp/alpine.img

#cleanup old stuff
losetup -d /dev/loop0 &>/dev/null || true
losetup -d /dev/loop1 &>/dev/null || true
rm $IMAGE &>/dev/null || true

#prepare image
truncate -s $IMAGE_SIZE $IMAGE
losetup -P /dev/loop0 $IMAGE
losetup -P /dev/loop1 $IMAGE

export INSTALL_DISK=/dev/loop0
export INSTALL_DISK=/dev/loop1
export INSTALL_EFI_DEV=$INSTALL_DISK""p2
export INSTALL_SWAP_DEV=$INSTALL_DISK""p3
export INSTALL_ZPOOL_DEV=$INSTALL_DISK""p4
Expand All @@ -31,7 +31,7 @@ cd ../install
./7-cleanup.sh

echo "ALPINEBOX: Compressing image..."
losetup -d /dev/loop0
losetup -d /dev/loop1
rm $IMAGE"".gz &>/dev/null || true
gzip $IMAGE

Expand Down

0 comments on commit 9d75560

Please sign in to comment.