Skip to content

Commit

Permalink
Reading configuration files in initramfs-tools hook too.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Aug 14, 2012
1 parent 6785317 commit 6f81ca9
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions backends/initramfs-tools/live.hook
Expand Up @@ -6,19 +6,15 @@ set -e

[ "${QUIET}" ] || echo -n "live-boot:"

# Reading configuration files
if [ -e /etc/live/boot.conf ]
then
. /etc/live/boot.conf
fi

if ls /etc/live/boot/* > /dev/null 2>&1
then
for _FILE in /etc/live/boot/*
do
. ${_FILE}
done
fi
# Reading configuration file from filesystem and live-media
for _FILE in /etc/live/boot.conf /etc/live/boot/* \
/live/image/live/boot.conf /live/image/live/boot/*
do
if [ -e "${_FILE}" ]
then
. "${_FILE}"
fi
done

# Checking live-boot
if [ ! -e /lib/live/boot ]
Expand Down

0 comments on commit 6f81ca9

Please sign in to comment.