stage 1
This commit is contained in:
parent
0b9c4909df
commit
6a5cf64486
3
boot.cmd
3
boot.cmd
@ -6,13 +6,14 @@
|
||||
setenv load_addr "0x9000000"
|
||||
setenv overlay_error "false"
|
||||
# default values
|
||||
setenv rootdev "/dev/mmcblk0p1"
|
||||
setenv verbosity "1"
|
||||
setenv console "both"
|
||||
setenv bootlogo "false"
|
||||
setenv rootfstype "ext4"
|
||||
setenv docker_optimizations "on"
|
||||
setenv earlycon "off"
|
||||
setenvrootdev
|
||||
setenvunamer
|
||||
|
||||
echo "Boot script loaded from ${devtype} ${devnum}"
|
||||
|
||||
|
@ -34,6 +34,10 @@ set -xeuf -o pipefail
|
||||
if [ -f /boot/.uname ]; then
|
||||
UNAME_R=$(</boot/.uname)
|
||||
BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}')
|
||||
|
||||
echo "${BOOT_PART}" >> /boot/uEnv.txt-%{full_ver}
|
||||
sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" /boot/boot.cmd-%{full_ver}
|
||||
sed -i "s/setenvunamer/setenv unamer \"${UNAME_R}\"/" /boot/boot.cmd-%{full_ver}
|
||||
else
|
||||
echo "ERROR: No /boot/.uname found to extract 'uname -r' from."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user