mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-03 11:55:59 +08:00
Update ubuntuInit.sh
This commit is contained in:
parent
47ec1fdafb
commit
8e4fc7a131
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,10 @@ exec >/dev/tty0 2>&1
|
|||
rm -f /etc/local.d/ubuntuConf.start
|
||||
rm -f /etc/runlevels/default/local
|
||||
|
||||
# Install necessary components.
|
||||
apk update
|
||||
apk add bash bash bash-doc bash-completion coreutils sed
|
||||
|
||||
# Get Ubuntu Linux configurations.
|
||||
confFile="/root/alpine.config"
|
||||
|
||||
|
@ -44,9 +48,12 @@ sed -i '$a\'$LinuxMirror'/'$alpineVer'/community' /etc/apk/repositories
|
|||
# Add edge testing to the repositories
|
||||
sed -i '$a\'$LinuxMirror'/edge/testing' /etc/apk/repositories
|
||||
|
||||
# Synchronize time from hardware
|
||||
hwclock -s
|
||||
|
||||
# Install necessary components.
|
||||
apk update
|
||||
apk add bash ca-certificates coreutils e2fsprogs hdparm multipath-tools parted sed util-linux wget
|
||||
apk add ca-certificates e2fsprogs hdparm multipath-tools parted util-linux wget
|
||||
|
||||
# start dd
|
||||
wget --no-check-certificate -qO- "$DDURL" | dd of="$IncDisk"
|
||||
|
|
Loading…
Add table
Reference in a new issue