summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-04 06:11:30 +0100
committerDave Reisner <dreisner@archlinux.org>2013-01-12 19:13:00 +0100
commitf8ee357b280161e7d3e04fdf9d3f73643ccfdddb (patch)
tree258f6eb8e6be7fc3d16a2b440ea9970b402a4ed1 /lsinitcpio
parent7a470f977f8aa2ce245e79795acaebd5b334b257 (diff)
downloadmkinitcpio-f8ee357b280161e7d3e04fdf9d3f73643ccfdddb.tar.gz
mkinitcpio-f8ee357b280161e7d3e04fdf9d3f73643ccfdddb.tar.xz
mkinitcpio: avoid using 'file' to get kernel versions
The kernel defines an offset at a fixed location within the bzImage which we can use to find the kernel version string. Since this is fairly important, reimplement the algorithm (which file almost surely uses) using low level tools to avoid the possibility that file may break or change its output, critically wounding mkinitcpio. Note that this change leaves 'file' in use for lsinitcpio compression detection. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'lsinitcpio')
0 files changed, 0 insertions, 0 deletions