diff --git a/install-update.sh b/install-update.sh index 92d9eee..9192af6 100755 --- a/install-update.sh +++ b/install-update.sh @@ -20,7 +20,8 @@ set_default_boot() { _rc=0 mkdir -p newroot || return mount -oro "$1" newroot || return - _kernel=$(find newroot/boot -name 'vmlinuz-*' -printf '%P\n' \ + _kernel=$(find newroot/boot -name 'vmlinuz-*' \ + | awk -F/ '{print $NF}' \ | sort -V \ | tail -n1 )