If you want to account for multiple kernel packages installed (certainly possible, but not exactly something I 'll expect in a live cd), then the relevant live becomes:
`KERNELVERSION=$(find "$ROOTFS"/boot/ -name "vmlinuz-*" -print|head -1|sed 's|.*\-\(.*\)|\1|'`
If you want to account for changes in the kernel image name (are there any kernel images with different names/compression in the repos; ), you can use the config file or the System.map file to extract the kernel version.
> If you want to account for multiple kernel packages installed (certainly possible, but not exactly something I 'll expect in a live cd), then the relevant live becomes:
> `KERNELVERSION=$(find "$ROOTFS"/boot/ -name "vmlinuz-*" -print|head -1|sed 's|.*\-\(.*\)|\1|'`
> If you want to account for changes in the kernel image name (are there any kernel images with different names/compression in the repos; ), you can use the config file or the System.map file to extract the kernel version.
Or you could simplify the whole thing by asking the package manager for
the current version of the linux meta package.
Got it! My simple approach gets really complicated. Thank you. =F0=9F=99=
=82
-- =
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/voidlinux/void-mklive/pull/168#issuecomment-395505994=