Commit 56c89d61 authored by Stefan Heimersheim's avatar Stefan Heimersheim

Added -f to rm because file might not exist

parent bff75bfc
......@@ -5,7 +5,7 @@ set -x
image_size="3G"
iso_file="ubuntu-18.04.1-desktop-amd64.iso"
workspace="/workspace/"
workspace="/home/stefan/tardis/workspace"
# mtools, ddrescure, fdisk, grub, 7z
rm -rf "$workspace/part_files"
......@@ -25,7 +25,7 @@ rm -rf "$workspace/part_files"/grub
cp "$iso_file" "$workspace/part_files/kubuntu.iso"
rm "$workspace/part.img"
rm -f "$workspace/part.img"
truncate -s "$image_size" "$workspace/part.img"
mkfs.vfat -n "LIPSTICK" "$workspace/part.img"
MTOOLS_SKIP_CHECK=1 mcopy -i "$workspace/part.img" -b -s -v "$workspace/part_files"/* ::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment