Skip to content

Commit

Permalink
Copy install-packages.bash to image file
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Jun 7, 2024
1 parent 0b306a3 commit 5ac079e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/image.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ if [[ $1 == "setup" ]]; then
qemu-img resize -f raw "$3" 4G
echo ", +" | sfdisk -N 2 "$3"
imageFile "mount" "$3"
cp ./tests/install-packages.bash ./tests/fs/opt
# rsync -avr --exclude="*.img" --exclude="*.sig" --exclude="tests/fs" --exclude="tests/dtb" --exclude="tests/kernel" ./ tests/fs/opt/zram
systemd-nspawn --directory="tests/fs" /opt/zram/tests/install-packages.bash
systemd-nspawn --directory="tests/fs" /opt/install-packages.bash
echo "set enable-bracketed-paste off" >> tests/fs/etc/inputrc # Prevents weird character output
cp tests/fs/boot/kernel* tests/kernel
cp tests/fs/boot/*.dtb tests/dtb
# cp tests/fs/boot/kernel* tests/kernel
# cp tests/fs/boot/*.dtb tests/dtb
imageFile "umount" "$3"
elif [[ $1 == "copy-logs" ]]; then
imageFile "mount" "$2"
Expand Down

0 comments on commit 5ac079e

Please sign in to comment.