summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
blob: d648beb5a142b99b3c32c6c2b46a806372311820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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