~lucidone/ryo-iso

bd954d72148a54056ed3cfa69f9ffec0a4ee8693 — HXR 8 months ago 3f67b33 master
Support for Ubuntu 18.04.5

initrd can no longer be reliably used to determine chrooted kernel
1 files changed, 1 insertions(+), 1 deletions(-)

M ryo_iso/data/uname
M ryo_iso/data/uname => ryo_iso/data/uname +1 -1
@@ 1,5 1,5 @@
#!/bin/bash
export CHROOT_KERNEL=$(ls -c /boot/initrd.img-* | head -1 | sed 's/^\/boot\/initrd.img-\(.*\)$/\1/')
export CHROOT_KERNEL=$(ls -c /boot/initrd.img-* /boot/config-* /boot/System.map-* 2> /dev/null | head -1 | cut -f2- -d\- | sort -nr | head -1)
export SYSTEM_KERNEL=$(/bin/uname.orig -r)
CHROOT_UNAME=$($0.orig $@ | sed "s/$SYSTEM_KERNEL/$CHROOT_KERNEL/")
echo $CHROOT_UNAME