Update alpineInit.sh

This commit is contained in:
Molly Lau 2023-05-30 17:21:39 +09:00 committed by GitHub
parent f82da9ba25
commit 193e46da07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,12 +117,15 @@ sed -ri 's/ash/bash/g' /etc/passwd
# Insall more components. # Insall more components.
apk update 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 # Use kernel "virt" if be executed on virtual machine
cp /etc/apk/world /tmp/world.old cp /etc/apk/world /tmp/world.old
[[ -n "$(virt-what)" ]] && kernelOpt="-k virt" [[ -n "$(virt-what)" ]] && kernelOpt="-k virt"
# Make a blank motd
echo "" >> /etc/motd
# Install to hard drive. # Install to hard drive.
export BOOTLOADER="grub" export BOOTLOADER="grub"
printf 'y' | setup-disk -m sys $kernelOpt -s 0 $AllDisks printf 'y' | setup-disk -m sys $kernelOpt -s 0 $AllDisks