update
This commit is contained in:
@@ -32,8 +32,6 @@ source /mnt/install/repo/custom/settings
|
||||
touch /tmp/rpms /tmp/settings
|
||||
|
||||
# Settings from config file
|
||||
# rootpw='$6$1mQhye0V5LujdR4F$87zIHy3bMZgjt02xY/F59eWk58VXh5CDSL0t9AInj6QOjLmYF0TDVeGLJH/bIKaGqXrbVJAgDHYZ9uT1uTMRX.'
|
||||
|
||||
echo "repo --name=\"AppStream\" --baseurl=${REPO:-NO_REPO}" >> /tmp/settings
|
||||
echo "rootpw --iscrypted ${ROOTPW:-NO_ROOTPW}" >> /tmp/settings
|
||||
echo "timezone ${TZ:-Europe/Amsterdam}" >> /tmp/settings
|
||||
@@ -41,9 +39,10 @@ echo "timezone ${TZ:-Europe/Amsterdam}" >> /tmp/settings
|
||||
set -- `cat /proc/cmdline`
|
||||
for I in $*; do case "$I" in *=*) eval ${I//inst\./} ;; esac; done
|
||||
|
||||
grep -qws "debug" /proc/cmdline && bash
|
||||
|
||||
# boot disk detection
|
||||
lsblk -bSo name,type,ro,hotplug,size,vendor,model,serial
|
||||
bd=$(lsblk -nbSo name,type,ro,hotplug,size | awk 'NR==1 && $2=="disk" && $3==0 && $4==0 && $5>500 {print $1}')
|
||||
|
||||
printf "%-10s%10s%10s%10s\n" dev size removable inuse
|
||||
for dev in $(find /sys/block/ -name "sd?" -o -name "xvd?" -o -name "vd?"|sort); do
|
||||
devname=${dev##*/}
|
||||
|
||||
Reference in New Issue
Block a user