Add Clear Linux Distro

Add path of Clear Linux kernel binary and kernel config file.
This commit is contained in:
Luis Ponce 2018-09-05 12:28:29 -05:00
parent 80e0db7cc4
commit a827bc1d52
1 changed files with 5 additions and 0 deletions

View File

@ -1466,6 +1466,9 @@ if [ "$opt_live" = 1 ]; then
[ -e "/run/booted-system/kernel" ] && opt_kernel="/run/booted-system/kernel"
# systemd kernel-install:
[ -e "/etc/machine-id" ] && [ -e "/boot/$(cat /etc/machine-id)/$(uname -r)/linux" ] && opt_kernel="/boot/$(cat /etc/machine-id)/$(uname -r)/linux"
# Clear Linux:
str_uname=$(uname -r)
[ -e "/lib/kernel" ] && opt_kernel="/lib/kernel/org.clearlinux.${str_uname##*.}.${str_uname%.*}"
fi
# system.map
@ -1475,6 +1478,8 @@ if [ "$opt_live" = 1 ]; then
opt_map="/lib/modules/$(uname -r)/System.map"
elif [ -e "/boot/System.map-$(uname -r)" ] ; then
opt_map="/boot/System.map-$(uname -r)"
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
opt_config="/lib/kernel/config-$(uname -r)"
fi
# config