Skip to content

Commit

Permalink
removing keeping copy of original image to reduce disk usage
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsauze committed Feb 2, 2024
1 parent 297a932 commit 3ce8bbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_img/build_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ resize2fs -p os.img

#rebuild the image
echo "Rebuilding Image"
mv $img_name $img_name.orig
#mv $img_name $img_name.orig
cat bootsector.img bootfs.img os.img > $img_name
#rm os.img bootsector.img bootfs.img

echo "Updated image with password set"



if [ "0" = "1" ] ; then

#grab offline datasci from outside of qemu, it is faster and more reliable
apt install -y python3-pip pipx r-base-core python3-lxml libssl-dev r-cran-curl dosfstools

Expand All @@ -86,7 +89,6 @@ pipx ensurepath
#and reload .profile to get the new path
source ~/.profile

if [ "0" = "1" ] ; then

mkdir offlinedatasci
cd offlinedatasci
Expand Down

0 comments on commit 3ce8bbb

Please sign in to comment.