grubby is part of mkinitrd-3.5.13-WB1 on RHE/WB etc. Grab the srpm from linux7 and extract the .tgz. To get grubby to build you need to add
#include in
grubby.c then build and install the
popt library. Then it just builds. Once it's built, recompile it with
cc -o grubby grubby.o mount_by_label.o -Wl,-Bstatic -lpopt -Wall -DVERSION=\"3.5.13\"to make it statically linked,
strip it, then copy it to where every it's needed.
No comments:
Post a Comment