mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update alpineInit.sh
This commit is contained in:
parent
f82da9ba25
commit
193e46da07
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue