summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/binary_local-hooks/grub2-configs17
-rwxr-xr-xconfig/binary_local-hooks/isohybrid-acritox18
-rwxr-xr-xconfig/chroot_local-hooks/07-dkms4
3 files changed, 37 insertions, 2 deletions
diff --git a/config/binary_local-hooks/grub2-configs b/config/binary_local-hooks/grub2-configs
new file mode 100755
index 0000000..7cd30ef
--- /dev/null
+++ b/config/binary_local-hooks/grub2-configs
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Copying local grub2 configuration files
+
+case "$LB_BOOTLOADER" in
+grub2|burg)
+ ;;
+*)
+ exit 0
+ ;;
+esac
+
+if [ -f config/binary_grub/grub.cfg ]
+then
+ mkdir -p binary/boot/grub
+ cp config/binary_grub/grub*.cfg binary/boot/grub/
+fi
+
diff --git a/config/binary_local-hooks/isohybrid-acritox b/config/binary_local-hooks/isohybrid-acritox
new file mode 100755
index 0000000..e7c2931
--- /dev/null
+++ b/config/binary_local-hooks/isohybrid-acritox
@@ -0,0 +1,18 @@
+#!/bin/bash
+# generate binary/boot.isohybrid for isohybrid-acritox
+
+[ "${LB_BINARY_IMAGES}" = "iso-hybrid" ] || exit 0
+
+case "$LB_BOOTLOADER" in
+grub2|burg)
+ ;;
+*)
+ exit 0
+ ;;
+esac
+
+chroot chroot grub-mkimage -d /usr/lib/grub/i386-pc -o "/boot.isohybrid" -O i386-pc biosdisk iso9660
+for i in $(seq 64); do echo -n "ACRITOX!"; done > binary/boot.isohybrid
+cat chroot/boot.isohybrid >> binary/boot.isohybrid
+rm -f chroot/boot.isohybrid
+
diff --git a/config/chroot_local-hooks/07-dkms b/config/chroot_local-hooks/07-dkms
index a0ed316..8f57d16 100755
--- a/config/chroot_local-hooks/07-dkms
+++ b/config/chroot_local-hooks/07-dkms
@@ -1,2 +1,2 @@
-#!/bin/sh
-for x in $(ls /boot/vmlinuz-*|sed s@/boot/vmlinuz-@@);do /usr/lib/dkms/dkms_autoinstaller start $x; done
+#!/bin/bash
+for x in /boot/vmlinuz-*;do KVERS=$x /usr/lib/dkms/dkms_autoinstaller start ${x#/boot/vmlinuz-}; done