Add a text file to the sysroot for testing ext2

This commit is contained in:
Drew Galbraith 2023-07-31 23:41:24 -07:00
parent db5c9ab859
commit ef1b5ab9a4
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,8 @@ echo "Loopback device: ${dev}"
cleanup() {
umount efi
rm -rf efi
umount sysroot
rm -rf sysroot
losetup -d $dev
}
trap cleanup EXIT
@ -41,4 +43,9 @@ cp sys/yellowstone/yellowstone efi/sys/yellowstone
cp sys/denali/denali efi/sys/denali
cp sys/victoriafalls/victoriafalls efi/sys/victoriafalls
mkdir -p sysroot
mount "${dev}p2" sysroot/
rsync -a ../sysroot .
ls sysroot/
chown drew:drew $1

1
sysroot/text.txt Normal file
View File

@ -0,0 +1 @@
A