=?UTF-8?Q?Re:_[voidlinux/void-mklive]_mklive.sh:_simplify_finding?= =?UTF-8?Q?_KERNELVERSION_by_searching_after_=22$ROOTFS=E2=80=A6_=28#168=29?=

mobinmob at Thu, 07 Jun 2018 13:25:47 +0000 (UTC)
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.
Michael Gehring at Thu, 07 Jun 2018 08:30:05 -0700
> 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.
mobinmob at Thu, 07 Jun 2018 10:43:09 -0700
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=
mobinmob at Thu, 07 Jun 2018 10:44:57 -0700
Closed #168.