From 0abc4334f15d4c0141a462422120e9c818435b37 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sun, 17 Sep 2023 13:58:09 +0900 Subject: [PATCH] Update autoRepackUbuntuCloudImages.sh --- Linux_reinstall/Ubuntu/autoRepackUbuntuCloudImages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Linux_reinstall/Ubuntu/autoRepackUbuntuCloudImages.sh b/Linux_reinstall/Ubuntu/autoRepackUbuntuCloudImages.sh index 875043d..c17868e 100644 --- a/Linux_reinstall/Ubuntu/autoRepackUbuntuCloudImages.sh +++ b/Linux_reinstall/Ubuntu/autoRepackUbuntuCloudImages.sh @@ -17,6 +17,8 @@ for distName in "jammy" "focal"; do mount /dev/mapper/$mapperDevice /mnt sed -ri 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"/g' /mnt/etc/default/grub sed -ri 's/cloudimg-rootfs ro/cloudimg-rootfs ro net.ifnames=0 biosdevname=0/g' /mnt/boot/grub/grub.cfg + sed -ri 's/GRUB_TIMEOUT=0/GRUB_TIMEOUT=3/g' /mnt/etc/default/grub + sed -ri 's/set timeout=0/set timeout=3/g' /mnt/boot/grub/grub.cfg umount /mnt kpartx -dv $loopDevice losetup -d $loopDevice