Skip to content

Commit

Permalink
Use the correct partition.
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamosher committed Jul 1, 2023
1 parent 42f0b98 commit d7281cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ rm ${LNCR_ZIP}
sudo mkdir mntfs
sudo modprobe nbd
sudo qemu-nbd -c /dev/nbd0 --read-only ./${ROOTFS_FN}
waitFile /dev/nbd0p1 "a" 30
sudo mount -o ro /dev/nbd0p1 mntfs
waitFile /dev/nbd0p5 "a" 30
sudo mount -o ro /dev/nbd0p5 mntfs

# Clone the qcow2 image contents to a writable directory
sudo cp -a mntfs rootfs

# Unmount the qcow2 image
sudo umount mntfs
sudo qemu-nbd -d /dev/nbd0
waitFile /dev/nbd0p1 "d" 30
waitFile /dev/nbd0p5 "d" 30
sudo rmmod nbd
sudo rmdir mntfs

Expand Down

0 comments on commit d7281cf

Please sign in to comment.