16 |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 |
|
|
19 |
ALX_PKG_KEEP="boot/grub etc/conf.d etc/grub.d usr/sbin |
ALX_PKG_KEEP="boot/grub etc/conf.d |
20 |
|
etc/grub.d |
21 |
|
usr/sbin |
22 |
usr/share/grub |
usr/share/grub |
23 |
usr/bin/grub-mkimage |
usr/bin/grub-mkimage |
24 |
usr/bin/grub-editenv |
usr/bin/grub-editenv |
25 |
usr/bin/grub-mkrelpath |
usr/bin/grub-mkrelpath |
26 |
usr/bin/grub-script-check |
usr/bin/grub-script-check |
27 |
usr/$(mlibdir)/grub/grub-mkconfig_lib |
usr/share/grub/grub-mkconfig_lib |
|
usr/$(mlibdir)/grub/update-grub_lib |
|
28 |
usr/$(mlibdir)/grub/i386-pc" |
usr/$(mlibdir)/grub/i386-pc" |
|
|
|
29 |
sminclude mtools alx-split |
sminclude mtools alx-split |
30 |
|
|
31 |
SRC_URI=( |
SRC_URI=( |
75 |
mmake DESTDIR=${BINDIR} install || die |
mmake DESTDIR=${BINDIR} install || die |
76 |
|
|
77 |
# set distribution |
# set distribution |
78 |
echo 'GRUB_DISTRIBUTOR="ALX Thinclient"' >> ${BINDIR}/usr/$(mlibdir)/grub/grub-mkconfig_lib || die |
echo 'GRUB_DISTRIBUTOR="ALX Thinclient"' >> ${BINDIR}/usr/share/grub/grub-mkconfig_lib || die |
79 |
|
|
80 |
# install only grub dir, no default config |
# install only grub dir, no default config |
81 |
minstalldir /boot/grub || die |
minstalldir /boot/grub || die |
88 |
mcinjectfile grub.confd /etc/conf.d/grub || die |
mcinjectfile grub.confd /etc/conf.d/grub || die |
89 |
|
|
90 |
# use custom creation scripts and delete the provided ones |
# use custom creation scripts and delete the provided ones |
91 |
|
echo -e ${COLGREEN}" injecting custom grub-configs"${COLDEFAULT} |
92 |
local i |
local i |
93 |
for i in ${BINDIR}/etc/grub.d/10_linux \ |
for i in ${BINDIR}/etc/grub.d/10_linux \ |
94 |
${BINDIR}/etc/grub.d/20_linux_xen \ |
${BINDIR}/etc/grub.d/20_linux_xen \ |