Skip to content

Commit

Permalink
Fix missing sed errors
Browse files Browse the repository at this point in the history
On versions of Ubuntu that predate the /usr merge - that is, Ubuntu
<19.04 - /usr/bin/sed does not exist, and build.sh fails.

See https://lists.ubuntu.com/archives/ubuntu-devel-announce/2018-November/001253.html
  • Loading branch information
strugee committed Oct 2, 2024
1 parent 68760e5 commit 59040be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tar --numeric-owner --preserve-permissions --same-owner --acls --selinux --xattr
systemctl --root=$mnt disable tpm-udev.path

# Slice rootfs config out of fstab, since LABEL=cloudimg-rootfs doesn't exist in the container environment and systemd-remount-fs.service complains about not being able to find it
chroot $mnt /usr/bin/sed -i '/LABEL=cloudimg-rootfs/d' /etc/fstab
chroot $mnt /bin/sed -i '/LABEL=cloudimg-rootfs/d' /etc/fstab

# Networking setup is expected to not actually cross a network boundary (i.e. only talk to the container host), so decrease the timeout because all operations here should be fast
mkdir $mnt/etc/systemd/system/systemd-networkd-wait-online.service.d/
Expand Down

0 comments on commit 59040be

Please sign in to comment.