@echo " done."
- @if [ ! -x "$$(which checkbashisms 2>/dev/null)" ]; \
+ @# We can't just fail yet on bashisms (FIXME)
+ @if [ -x "$$(which checkbashisms 2>/dev/null)" ]; \
then \
+ echo -n "Checking for bashisms"; \
+ for SCRIPT in $(SCRIPTS); \
+ do \
+ checkbashisms -f -x $${SCRIPT} || true; \
+ echo -n "."; \
+ done; \
+ echo " done."; \
+ else \
echo "W: checkbashisms - command not found"; \
echo "I: checkbashisms can be optained from: "; \
echo "I: http://git.debian.org/?p=devscripts/devscripts.git"; \
echo "I: On Debian systems, checkbashisms can be installed with:"; \
echo "I: apt-get install devscripts"; \
- exit 0; \
fi
- @echo -n "Checking for bashisms"
-
- @# We can't just fail yet on bashisms (FIXME)
- @for SCRIPT in $(SCRIPTS); \
- do \
- checkbashisms -f -x $${SCRIPT} || true; \
- echo -n "."; \
- done
-
- @echo " done."
-
build:
@echo "Nothing to build."
# live-boot hook
+# Reading configuration file from filesystem
+if [ -e /etc/live/boot.conf ]
+then
+ . /etc/live/boot.conf
+fi
+
+if ls /etc/live/boot.conf.d/* > /dev/null 2>&1
+then
+ for _FILE in /etc/live/boot.conf.d/*
+ do
+ . ${_FILE}
+ done
+fi
+
# Handling live-boot
# Configuration
manual_add_modules iscsi_tcp
manual_add_modules crc32c
fi
+
+if [ "${LIVE_DNS}" = "true" ]
+then
+ #copy_exec /lib/libnss_files.so.* /lib # /etc/hosts and /etc/passwd
+ copy_exec /lib/libnss_dns.so.* /lib # DNS server
+ #copy_exec /lib/libnss_compat.so.* /lib # /etc/passwd
+
+ # Configuration file - may be needed if /etc/hosts is used.
+ #mkdir -p $DESTDIR/etc
+ #cp -p /etc/nsswitch.conf $DESTDIR/etc
+fi
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT 7 17.07.2010 2.0~a15 "Debian Live Projekt"
+.TH LIVE\-BOOT 7 28.07.2010 2.0~a16 "Debian Live Projekt"
.SH NAME
\fBlive\-boot\fP \- System Boot Skripte
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT 1 17.07.2010 2.0~a15 "Debian Live Projekt"
+.TH LIVE\-BOOT 1 28.07.2010 2.0~a16 "Debian Live Projekt"
.SH NAME
\fBlive\-snapshot\fP \- simple script to ease persistence usage
-.TH LIVE\-BOOT 7 2010\-07\-17 2.0~a15 "Debian Live Project"
+.TH LIVE\-BOOT 7 2010\-07\-28 2.0~a16 "Debian Live Project"
.SH NAME
\fBlive\-boot\fR \- System Boot Scripts
-.TH LIVE\-BOOT 1 2010\-07\-17 2.0~a15 "Debian Live Project"
+.TH LIVE\-BOOT 1 2010\-07\-28 2.0~a16 "Debian Live Project"
.SH NAME
\fBlive\-snapshot\fR \- simple script to ease persistence usage
#
msgid ""
msgstr ""
-"Project-Id-Version: live-boot 2.0~a15\n"
-"POT-Creation-Date: 2010-07-17 17:19+0300\n"
+"Project-Id-Version: live-boot 2.0~a16\n"
+"POT-Creation-Date: 2010-07-28 20:17+0300\n"
"PO-Revision-Date: 2010-05-24 12:34+0300\n"
"Last-Translator: Daniel Baumann <daniel@debian.org>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2010-07-17"
-msgstr "17.07.2010"
+msgid "2010-07-28"
+msgstr "28.07.2010"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2.0~a15"
-msgstr "2.0~a15"
+msgid "2.0~a16"
+msgstr "2.0~a16"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#
msgid ""
msgstr ""
-"Project-Id-Version: live-boot 2.0~a15\n"
-"POT-Creation-Date: 2010-07-17 17:19+0300\n"
+"Project-Id-Version: live-boot 2.0~a16\n"
+"POT-Creation-Date: 2010-07-28 20:17+0300\n"
"PO-Revision-Date: 2010-05-24 12:34+0300\n"
"Last-Translator: Daniel Baumann <daniel@debian.org>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2010-07-17"
-msgstr "17.07.2010"
+msgid "2010-07-28"
+msgstr "28.07.2010"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2.0~a15"
-msgstr "2.0~a15"
+msgid "2.0~a16"
+msgstr "2.0~a16"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
msgid ""
msgstr ""
"Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2010-07-17 17:19+0300\n"
+"POT-Creation-Date: 2010-07-28 20:17+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2010-07-17"
+msgid "2010-07-28"
msgstr ""
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2.0~a15"
+msgid "2.0~a16"
msgstr ""
#. type: TH
msgid ""
msgstr ""
"Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2010-07-17 17:19+0300\n"
+"POT-Creation-Date: 2010-07-28 20:17+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2010-07-17"
+msgid "2010-07-28"
msgstr ""
#. type: TH
#: en/live-boot.7:1 en/live-snapshot.1:1
#, no-wrap
-msgid "2.0~a15"
+msgid "2.0~a16"
msgstr ""
#. type: TH
HWADDR="$(cat /sys/class/net/${DEVICE}/address)"
fi
+ if [ ! -e "/etc/resolv.conf" ]
+ then
+ echo "Creating /etc/resolv.conf"
+
+ if [ -n "${DNSDOMAIN}" ]
+ then
+ echo "domain ${DNSDOMAIN}" > /etc/resolv.conf
+ echo "search ${DNSDOMAIN}" > /etc/resolv.conf
+ fi
+
+ for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1}
+ do
+ echo "nameserver $i" >> /etc/resolv.conf
+ done
+ fi
+
# Check if we have a network device at all
if ! ls /sys/class/net/"$DEVICE" > /dev/null 2>&1 && \
! ls /sys/class/net/eth0 > /dev/null 2>&1 && \
fi
modprobe fuse
$FUSE_MOUNT "${url}" "${dest}"
- FUSE_PID="$(minips h -C "$FUSE_MOUNT" | { read x y ; echo "$x" ; } )"
+ ROOT_PID="$(minips h -C "$FUSE_MOUNT" | { read x y ; echo "$x" ; } )"
fi
[ ${?} -eq 0 ] && rc=0
[ "${extension}" = "tgz" ] && live_dest="ram"
elif [ "${webfile}" != "FETCH" ] ; then
NETBOOT="${webfile}"
export NETBOOT
- if [ -n "${FUSE_PID}" ] ; then
- echo "${FUSE_PID}" > ${mountpoint}/root.pid
- fi
fi
return ${rc}
mount_images_in_directory "${livefs_root}" "${rootmnt}" "${mac}"
fi
+
+ if [ -n "${ROOT_PID}" ] ; then
+ echo "${ROOT_PID}" > "${rootmnt}"/live/root.pid
+ fi
+
log_end_msg
# unionfs-fuse needs /dev to be bind-mounted for the duration of