From 193e46da07fe1a059902b95efed3d7e3301cee9d Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Tue, 30 May 2023 17:21:39 +0900 Subject: [PATCH] Update alpineInit.sh --- Linux_reinstall/Alpine/alpineInit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index f80512b..17339f8 100644 --- a/Linux_reinstall/Alpine/alpineInit.sh +++ b/Linux_reinstall/Alpine/alpineInit.sh @@ -117,12 +117,15 @@ sed -ri 's/ash/bash/g' /etc/passwd # Insall more components. apk update -apk add axel bind-tools cpio curl e2fsprogs figlet grep grub gzip hdparm lsblk net-tools parted python3 py3-pip udev util-linux virt-what vim wget +apk add axel bind-tools cpio curl e2fsprogs figlet grep grub gzip hdparm lsblk lsof net-tools parted python3 py3-pip udev util-linux virt-what vim wget # Use kernel "virt" if be executed on virtual machine cp /etc/apk/world /tmp/world.old [[ -n "$(virt-what)" ]] && kernelOpt="-k virt" +# Make a blank motd +echo "" >> /etc/motd + # Install to hard drive. export BOOTLOADER="grub" printf 'y' | setup-disk -m sys $kernelOpt -s 0 $AllDisks