platforms: overlayfs (overlay) support, requires kernel >= 3.18
platforms: install syslinux required modules if found for syslinux >= 6.0 support
This commit is contained in:
parent
87b89b5be7
commit
11d460290d
@ -10,7 +10,7 @@ chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|||||||
# make initramfs
|
# make initramfs
|
||||||
|
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
@ -54,6 +54,11 @@ _EOF
|
|||||||
{ echo "Error: /usr/share/syslinux/isolinux.bin not found. Please install the syslinux package.";
|
{ echo "Error: /usr/share/syslinux/isolinux.bin not found. Please install the syslinux package.";
|
||||||
exit 1; }
|
exit 1; }
|
||||||
|
|
||||||
|
# install syslinux modules
|
||||||
|
for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32; do
|
||||||
|
cp $MOUNTDIR/usr/share/syslinux/$f $MOUNTDIR2/boot/isolinux/
|
||||||
|
done
|
||||||
|
|
||||||
# install memtest
|
# install memtest
|
||||||
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
||||||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
|
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
||||||
${KERNEL_MAJVER}${K}
|
${KERNEL_MAJVER}${K}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# make initramfs
|
# make initramfs
|
||||||
|
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
@ -11,7 +11,7 @@ ISOID=
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
||||||
${KERNEL_MAJVER}${K}
|
${KERNEL_MAJVER}${K}
|
||||||
@ -103,7 +103,9 @@ _EOF
|
|||||||
exit 1; }
|
exit 1; }
|
||||||
|
|
||||||
# copy syslinux addons to final root /boot dir
|
# copy syslinux addons to final root /boot dir
|
||||||
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/
|
for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32; do
|
||||||
|
[ -e $MOUNTDIR/usr/share/syslinux/$f ] && cp $MOUNTDIR/usr/share/syslinux/$f $MOUNTDIR2/boot/isolinux/
|
||||||
|
done
|
||||||
|
|
||||||
# install memtest
|
# install memtest
|
||||||
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
||||||
|
@ -11,7 +11,7 @@ ISOID=
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
||||||
${KERNEL_MAJVER}${K}
|
${KERNEL_MAJVER}${K}
|
||||||
@ -131,7 +131,9 @@ rm -f $MOUNTDIR2/boot/isolinux/isolinux.cfg.utf8
|
|||||||
exit 1; }
|
exit 1; }
|
||||||
|
|
||||||
# copy syslinux addons to final root /boot dir
|
# copy syslinux addons to final root /boot dir
|
||||||
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/
|
for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32; do
|
||||||
|
[ -e $MOUNTDIR/usr/share/syslinux/$f ] && cp $MOUNTDIR/usr/share/syslinux/$f $MOUNTDIR2/boot/isolinux/
|
||||||
|
done
|
||||||
|
|
||||||
# install memtest
|
# install memtest
|
||||||
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
||||||
|
@ -11,7 +11,7 @@ ISOID=
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${K}
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${K}.img.gz \
|
||||||
${KERNEL_MAJVER}${K}
|
${KERNEL_MAJVER}${K}
|
||||||
@ -105,6 +105,11 @@ _EOF
|
|||||||
# copy syslinux addons to final root /boot dir
|
# copy syslinux addons to final root /boot dir
|
||||||
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/
|
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/
|
||||||
|
|
||||||
|
# copy syslinux addons to final root /boot dir
|
||||||
|
for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32; do
|
||||||
|
[ -e $MOUNTDIR/usr/share/syslinux/$f ] && cp $MOUNTDIR/usr/share/syslinux/$f $MOUNTDIR2/boot/isolinux/
|
||||||
|
done
|
||||||
|
|
||||||
# install memtest
|
# install memtest
|
||||||
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest ||
|
||||||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
|
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# make initramfs
|
# make initramfs
|
||||||
|
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "autofs4 ext3 ext4 overlayfs squashfs isofs reiserfs" \
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
Loading…
Reference in New Issue
Block a user