summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/usr/share
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 01:40:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 01:40:10 +0100
commitf3ad1b9576e9a26cee97b6c38beb726dacd4b857 (patch)
tree06d648b098bce02c56c9b1075e44132c9c0cc884 /config/chroot_local-includes/usr/share
parent1bfe9bead76041cce4fbd3cb8e6a12911c2ec12e (diff)
downloadkanotix-f3ad1b9576e9a26cee97b6c38beb726dacd4b857.zip
kanotix-f3ad1b9576e9a26cee97b6c38beb726dacd4b857.tar.gz
added hooks to include firmware-rpms in EFI-FAT partition
Diffstat (limited to 'config/chroot_local-includes/usr/share')
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware
new file mode 100755
index 0000000..b1ead30
--- /dev/null
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+img=/root/live/image/boot.efi.img
+
+cd /root
+if [ -e "$img" ]; then
+ mkdir -p live/efipart
+ mount -o loop "$img" live/efipart
+ for file in live/efipart/*firmware*rpm
+ do
+ [ -e "$file" ] && /bin/chroot . rpm2cpio "/$file" | cpio -i
+ done
+ umount live/efipart
+ rmdir live/efipart
+fi
+