summaryrefslogtreecommitdiff
path: root/scripts/casper
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
commit6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e (patch)
tree333a05a0a341c98203688dc4d01589340eca951c /scripts/casper
parenta4a7503df76005df67b006e1324004c808830c32 (diff)
downloadlive-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.tar.gz
live-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.zip
Adding casper 1.66+debian-1.
Diffstat (limited to 'scripts/casper')
-rw-r--r--scripts/casper21
1 files changed, 14 insertions, 7 deletions
diff --git a/scripts/casper b/scripts/casper
index 61e579c..3e4ed06 100644
--- a/scripts/casper
+++ b/scripts/casper
@@ -23,12 +23,19 @@ home_persistence="home-rw"
USERNAME="casper"
USERFULLNAME="Live session user"
HOST="live"
+BUILD_SYSTEM="Debian"
mkdir -p $mountpoint
[ -f /etc/casper.conf ] && . /etc/casper.conf
-export USERNAME USERFULLNAME HOST
+export USERNAME USERFULLNAME HOST BUILD_SYSTEM
+
+if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then
+ MP_QUIET="-Q"
+else
+ MP_QUIET="-q"
+fi
# looking for casper specifics options as kernel parameters
for x in $(cat /proc/cmdline); do
@@ -133,7 +140,7 @@ setup_loop() {
local module=$2
local pattern=$3
- modprobe -qb "$module"
+ modprobe "${MP_QUIET}" -b "$module"
udevsettle
for loopdev in $pattern; do
@@ -164,7 +171,7 @@ setup_devmapper() {
backdev="$1"
rootmnt="$2"
- modprobe -qb dm-mod
+ modprobe "${MP_QUIET}" -b dm-mod
COW_DEVICE=/dev/ram1
COW_NAME="casper-cow"
@@ -267,7 +274,7 @@ find_cow_device() {
do_netmount() {
rc=1
- modprobe -q af_packet # For DHCP
+ modprobe "${MP_QUIET}" af_packet # For DHCP
ipconfig ${DEVICE} /tmp/net-${DEVICE}.conf
@@ -291,7 +298,7 @@ do_netmount() {
do_nfsmount() {
rc=1
- modprobe -q nfs
+ modprobe "${MP_QUIET}" nfs
if [ -z "${NFSOPTS}" ]; then
NFSOPTS=""
fi
@@ -315,7 +322,7 @@ do_cifsmount() {
fi
[ "$quiet" != "y" ] && log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
- modprobe -q cifs
+ modprobe "${MP_QUIET}" cifs
if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}" ; then
rc=0
@@ -328,7 +335,7 @@ setup_unionfs() {
image_directory="$1"
rootmnt="$2"
- modprobe -qb unionfs
+ modprobe "${MP_QUIET}" -b unionfs
# run-init can't deal with this, but we're going to move all of these
# away before it runs anyway.