Skip to content

Commit

Permalink
Make sure the /etc/fstab is empty
Browse files Browse the repository at this point in the history
Otherwise we can get into a race condition between /media/cdrom
and /media/sr0 both tryin to mount /dev/sr0.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Jan 16, 2024
1 parent c3583ad commit b261c00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions genapkovl-lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ tmp="$(mktemp -d)"
trap cleanup EXIT

mkdir -p "$tmp"/etc
makefile root:root 0644 "$tmp"/etc/fstab <<EOF
# /etc/fstab
EOF

makefile root:root 0644 "$tmp"/etc/hostname <<EOF
$HOSTNAME
EOF
Expand Down

0 comments on commit b261c00

Please sign in to comment.