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