summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 12:01:50 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 12:01:50 +0100
commit31ad8ce7130bb732ee7e0b7cd1f8f0b47d93e8ed (patch)
tree021bc5af67527faf538a0a7ddeb2fe6f12ead373 /config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom
parentabd81c507273d1820d00d545c0ac9099998d4510 (diff)
parent4b0deb206a6497ab090190fbbdb0086645301b4f (diff)
downloadkanotix-31ad8ce7130bb732ee7e0b7cd1f8f0b47d93e8ed.zip
kanotix-31ad8ce7130bb732ee7e0b7cd1f8f0b47d93e8ed.tar.gz
Merge branch 'master' of ssh://home.acritox.de/data/git/kanotix
Diffstat (limited to 'config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom')
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay14
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/02blacklist6
2 files changed, 20 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
new file mode 100755
index 0000000..d648beb
--- /dev/null
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -e /etc/gfxoverlay ]; then
+ overlay="$(echo /root/live/image/gfxoverlay/$(cat /etc/gfxoverlay).*)"
+ if [ -f "$overlay" ]; then
+ #overlay_dev="$(losetup -f)"
+ #losetup "$overlay_dev" "$overlay"
+ mkdir -p /live/gfxoverlay /root/live/gfxoverlay
+ mount -o loop "$overlay" /live/gfxoverlay
+ mount -o remount,add:1:/live/gfxoverlay /root
+ mount -n -o move /live/gfxoverlay /root/live/gfxoverlay
+ fi
+fi
+
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/02blacklist b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/02blacklist
new file mode 100755
index 0000000..1312363
--- /dev/null
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/02blacklist
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -e /etc/modprobe.d/initramfs.conf ]; then
+ cp /etc/modprobe.d/initramfs.conf /root/etc/modprobe.d/initramfs.conf
+fi
+