5 export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
7 echo "/root/lib" >> /etc/ld.so.conf
8 echo "/root/usr/lib" >> /etc/ld.so.conf
10 mountpoint="/live/image"
11 LIVE_MEDIA_PATH="live"
13 root_persistence="live-rw"
14 home_persistence="home-rw"
15 root_snapshot_label="live-sn"
16 home_snapshot_label="home-sn"
19 USERFULLNAME="Live user"
22 mkdir -p "${mountpoint}"
24 [ -f /etc/live.conf ] && . /etc/live.conf
25 export USERNAME USERFULLNAME HOSTNAME
27 . /scripts/live-helpers
29 if [ ! -f /live.vars ]
38 for ARGUMENT in $(cat /proc/cmdline)
42 ACCESS="${ARGUMENT#access=}"
47 DEFCONSOLE="${ARGUMENT#*=}"
59 FETCH="${ARGUMENT#fetch=}"
64 HOSTNAME="${ARGUMENT#hostname=}"
66 export HOSTNAME LIVECONF
70 USERNAME="${ARGUMENT#username=}"
72 export USERNAME LIVECONF
76 USERFULLNAME="${ARGUMENT#userfullname=}"
78 export USERFULLNAME LIVECONF
87 STATICIP="${ARGUMENT#ip=}"
89 if [ -z "${STATICIP}" ]
97 keyb=*|kbd-chooser/method=*)
102 klayout=*|console-setup/layoutcode=*)
103 KLAYOUT="${ARGUMENT#*=}"
107 kvariant=*|console-setup/variantcode=*)
108 KVARIANT="${ARGUMENT#*=}"
112 kmodel=*|console-setup/modelcode=*)
113 KMODEL="${ARGUMENT#*=}"
118 KOPTIONS="${ARGUMENT#koptions=}"
127 live-media=*|bootfrom=*)
128 LIVE_MEDIA="${ARGUMENT#*=}"
132 live-media-encryption=*|encryption=*)
133 LIVE_MEDIA_ENCRYPTION="${ARGUMENT#*=}"
134 export LIVE_MEDIA_ENCRYPTION
138 LIVE_MEDIA_OFFSET="${ARGUMENT#live-media-offset=}"
139 export LIVE_MEDIA_OFFSET
143 LIVE_MEDIA_PATH="${ARGUMENT#live-media-path=}"
144 export LIVE_MEDIA_PATH
147 live-media-timeout=*)
148 LIVE_MEDIA_TIMEOUT="${ARGUMENT#live-media-timeout=}"
149 export LIVE_MEDIA_TIMEOUT
152 locale=*|debian-installer/locale=*)
153 LOCALE="${ARGUMENT#*=}"
158 MODULE="${ARGUMENT#module=}"
163 NETBOOT="${ARGUMENT#netboot=}"
168 NFSOPTS="${ARGUMENT#nfsopts=}"
173 NOACCESSIBILITY="Yes"
174 export NOACCESSIBILITY
198 NOCONSOLEKEYBOARD="Yes"
199 export NOCONSOLEKEYBOARD
223 NOKPERSONALIZER="Yes"
224 export NOKPERSONALIZER
233 NOLANGUAGESELECTOR="Yes"
234 export NOLANGUAGESELECTOR
248 NOPOWERMANAGEMENT="Yes"
249 export NOPOWERMANAGEMENT
253 NOPROGRAMCRASHES="Yes"
254 export NOPROGRAMCRASHES
258 NORESTRICTEDMANAGER="Yes"
259 export NORESTRICTEDMANAGER
273 NOUPDATENOTIFIER="Yes"
274 export NOUPDATENOTIFIER
289 export NOXSCREENSAVER
302 preseed/file=*|file=*)
303 LOCATION="${ARGUMENT#*=}"
313 location="${ARGUMENT#url=}"
315 mount -n -o bind /sys /root/sys
316 mount -n -o bind /proc /root/proc
317 mount -n -o bind /dev /root/dev
319 mkdir -p /root/var/run/network
321 chroot /root wget -P /tmp "${location}"
322 chroot /root ifdown -a
328 LOCATION="/tmp/$(basename "${location}")"
332 question="${ARGUMENT%%=*}"
333 value="${ARGUMENT#*=}"
334 PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
349 TIMEZONE="${ARGUMENT#timezone=}"
359 TODISK="${ARGUMENT#todisk=}"
370 MODULETORAM="${ARGUMENT#toram=}"
371 export TORAM MODULETORAM
380 UNIONTYPE="${ARGUMENT#union=}"
385 UTC="${ARGUMENT#utc=}"
395 XVIDEOMODE="${ARGUMENT#xvideomode=}"
401 # sort of compatibility with netboot.h from linux docs
402 if [ -z "${NETBOOT}" ]
404 if [ "${ROOT}" = "/dev/nfs" ]
408 elif [ "${ROOT}" = "/dev/cifs" ]
415 if [ -z "${MODULE}" ]
421 if [ -z "${UNIONTYPE}" ]
432 if [ -d "${DIRECTORY}"/"${LIVE_MEDIA_PATH}" ]
434 for FILESYSTEM in squashfs ext2 ext3 xfs dir
436 if [ "$(echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM})" != "${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}" ]
448 if [ "${IGNORE_UUID}" ] || [ ! -e /conf/uuid.conf ]
454 uuid="$(cat /conf/uuid.conf)"
456 for try_uuid_file in "${mountpoint}/.disk/casper-uuid"*
458 [ -e "${try_uuid_file}" ] || continue
460 try_uuid="$(cat "${try_uuid_file}")"
462 if [ "${uuid}" = "${try_uuid}" ]
471 get_backing_device ()
474 *.squashfs|*.ext2|*.ext3)
475 echo $(setup_loop "${1}" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}")
483 panic "Unrecognized live filesystem: ${1}"
488 match_files_in_dir ()
490 # Does any files match pattern ${1} ?
493 if [ "$(echo ${pattern})" != "${pattern}" ]
501 mount_images_in_directory ()
506 if match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.squashfs" ||
507 match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.ext2" ||
508 match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.ext3" ||
509 match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.dir"
511 setup_unionfs "${directory}/${LIVE_MEDIA_PATH}" "${rootmnt}"
519 sysfs_path="${1#/sys}"
521 if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])"
531 # FIXME: do something better like the scan of supported filesystems
535 vfat|iso9660|udf|ext2|ext3|ntfs)
547 copyto="${copyfrom}_swap"
549 if [ -z "${MODULETORAM}" ]
551 size=$(fs_size "" ${copyfrom} "used")
553 MODULETORAMFILE="${copyfrom}/${LIVE_MEDIA_PATH}/${MODULETORAM}"
555 if [ -f "${MODULETORAMFILE}" ]
557 size=$( expr $(ls -la ${MODULETORAMFILE} | awk '{print $5}') / 1024 + 5000 )
559 log_warning_msg "Error: toram-module ${MODULETORAM} (${MODULETORAMFILE}) could not be read."
564 if [ "${copytodev}" = "ram" ]
567 freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ) )
568 mount_options="-o size=${size}k"
573 # it should be a writable block device
574 if [ -b "${copytodev}" ]
578 fstype=$(get_fstype "${dev}")
579 freespace=$(fs_size "${dev}")
581 [ "$quiet" != "y" ] && log_warning_msg "${copytodev} is not a block device."
586 if [ "${freespace}" -lt "${size}" ]
588 [ "${quiet}" != "y" ] && log_warning_msg "Not enough free ${free_string} (${freespace}k free, ${size}k needed) to copy live media in ${copytodev}."
592 # begin copying (or uncompressing)
594 echo "mount -t ${fstype} ${mount_options} ${dev} ${copyto}"
595 mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}"
597 if [ "${extension}" = "tgz" ]
600 tar zxf "${copyfrom}/${LIVE_MEDIA_PATH}/$(basename ${FETCH})"
601 rm -f "${copyfrom}/${LIVE_MEDIA_PATH}/$(basename ${FETCH})"
602 mount -r --move "${copyto}" "${rootmnt}"
605 if [ -n "${MODULETORAMFILE}" ]
607 cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
609 cp -a ${copyfrom}/* ${copyto} # "cp -a" from busybox also copies hidden files
614 mount -r --move ${copyto} ${copyfrom}
625 modprobe -q af_packet # For DHCP
630 ipconfig ${DEVICE} | tee /netboot.config
632 # source relevant ipconfig output
633 OLDHOSTNAME=${HOSTNAME}
634 . /tmp/net-${DEVICE}.conf
635 [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
638 if [ "${NFSROOT}" = "auto" ]
640 NFSROOT=${ROOTSERVER}:${ROOTPATH}
643 if [ -n "${FETCH}" ] && do_httpmount
649 if [ "${NFSROOT#*:}" = "${NFSROOT}" ] && [ "$NETBOOT" != "cifs" ]
651 NFSROOT=${ROOTSERVER}:${NFSROOT}
654 [ "${quiet}" != "y" ] && log_begin_msg "Trying netboot from ${NFSROOT}"
656 if [ "${NETBOOT}" != "nfs" ] && do_cifsmount
666 [ "${quiet}" != "y" ] && log_end_msg
673 extension=$(echo "${FETCH}" | sed 's/\(.*\)\.\(.*\)/\2/')
675 case "${extension}" in
677 [ "${quiet}" != "y" ] && log_begin_msg "Trying wget ${FETCH} -O ${mountpoint}/$(basename ${FETCH})"
678 mkdir -p "${mountpoint}/${LIVE_MEDIA_PATH}"
679 wget "${FETCH}" -O "${mountpoint}/${LIVE_MEDIA_PATH}/$(basename ${FETCH})"
680 [ ${?} -eq 0 ] && rc=0
681 [ "${extension}" = "tgz" ] && live_dest="ram"
685 [ "${quiet}" != "y" ] && log_begin_msg "Unrecognized archive extension for ${FETCH}"
697 if [ -z "${NFSOPTS}" ]
702 [ "${quiet}" != "y" ] && log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
704 # FIXME: This for loop is an ugly HACK round an nfs bug
705 for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13
707 nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
718 if [ -x "/sbin/mount.cifs" ]
720 if [ -z "${NFSOPTS}" ]
722 CIFSOPTS="-ouser=root,password="
724 CIFSOPTS="${NFSOPTS}"
727 [ "${quiet}" != "y" ] && log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
730 if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}"
744 size=$(fs_size "${fromdev}" "" "used")
746 if [ -b "${fromdev}" ]
749 if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]
751 todev=$(cat /proc/mounts | grep -s " $(base_path ${todir}) " | awk '{print $1}' )
752 freespace=$(df -k | grep -s ${todev} | awk '{print $4}')
754 freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ))
757 tomount="/mnt/tmpsnap"
759 if [ ! -d "${tomount}" ]
761 mkdir -p "${tomount}"
764 fstype=$(get_fstype "${fromdev}")
766 if [ -n "${fstype}" ]
769 mount -t "${fstype}" -o ro,noatime "${fromdev}" "${tomount}"
770 cp -a "${tomount}"/* ${todir}
773 log_warning_msg "Unrecognized fstype: ${fstype} on ${fromdev}:${snap_type}"
778 if echo ${fromdev} | grep -qs loop
780 losetup -d "${fromdev}"
787 [ "${quiet}" != "y" ] && log_warning_msg "Unable to find the snapshot ${snap_type} medium"
793 # Look for ${snap_label}.* in block devices and copy the contents to ${snap_mount}
794 # and remember the device and filename for resync on exit in live-initramfs.init
799 snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3")
801 if [ ! -z "${snapdata}" ]
803 snapdev="$(echo ${snapdata} | cut -f1 -d ' ')"
804 snapback="$(echo ${snapdata} | cut -f2 -d ' ')"
805 snapfile="$(echo ${snapdata} | cut -f3 -d ' ')"
807 if echo "${snapfile}" | grep -qs '\(squashfs\|ext2\|ext3\)'
809 # squashfs or ext2/ext3 snapshot
810 dev=$(get_backing_device "${snapback}/${snapfile}")
812 if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
814 log_warning_msg "Impossible to include the ${snapfile} Snapshot"
819 if ! (cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | cpio -i -u -d 2>/dev/null)
821 log_warning_msg "Impossible to include the ${snapfile} Snapshot"
828 dev=$(find_cow_device "${snap_label}")
832 if echo "${dev}" | grep -qs loop
834 # strange things happens, user confused?
835 snaploop=$( losetup ${dev} | awk '{print $3}' | tr -d '()' )
836 snapfile=$(basename ${snaploop})
837 snapdev=$(cat /proc/mounts | awk '{print $2,$1}' | grep -es "^$( dirname ${snaploop} )" | cut -f2 -d ' ')
842 if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
844 log_warning_msg "Impossible to include the ${snap_label} Snapshot"
847 if [ -n "${snapfile}" ]
849 # it was a loop device, user confused
854 log_warning_msg "Impossible to include the ${snap_label} Snapshot"
859 echo "export ${snap_type}SNAP="${snap_mount}":${snapdev}:${snapfile}" >> /etc/live.conf # for resync on reboot/halt
865 image_directory="${1}"
868 modprobe -q -b ${UNIONTYPE}
870 # run-init can't deal with images in a subdir, but we're going to
871 # move all of these away before it runs anyway. No, we're not,
872 # put them in / since move-mounting them into / breaks mono and
877 # Let's just mount the read-only file systems first
880 minor_kernel_version=$(uname -r|cut -c 5-|sed 's/[^0-9].*//')
882 if [ "${NETBOOT}" = "nfs" ] && [ "${minor_kernel_version}" -lt 22 ]
884 # go aroung a bug in nfs-unionfs locking for unionfs <= 1.4
890 # Read image names from ${MODULE}.module if it exists
891 if [ -e "${image_directory}/filesystem.${MODULE}.module" ]
893 for IMAGE in $(cat ${image_directory}/filesystem.${MODULE}.module)
895 image_string="${image_string} ${image_directory}/${IMAGE}"
897 elif [ -e "${image_directory}/${MODULE}.module" ]
899 for IMAGE in $(cat ${image_directory}/${MODULE}.module)
901 image_string="${image_string} ${image_directory}/${IMAGE}"
904 # ${MODULE}.module does not exist, create a list of images
905 for FILESYSTEM in squashfs ext2 ext3 xfs dir
907 for IMAGE in "${image_directory}"/*."${FILESYSTEM}"
911 image_string="${image_string} ${IMAGE}"
917 image_string="$(echo ${image_string} | sed -e 's/ /\n/g' | sort )"
920 [ -n "${MODULETORAMFILE}" ] && image_string="${image_directory}/$(basename ${MODULETORAMFILE})"
924 for image in ${image_string}
926 imagename=$(basename "${image}")
930 # it is a plain directory: do nothing
931 rofsstring="${image}=${roopt}:${rofsstring}"
932 rofslist="${image} ${rofslist}"
933 elif [ -f "${image}" ]
935 backdev=$(get_backing_device "${image}")
936 fstype=$(get_fstype "${backdev}")
938 if [ "${fstype}" = "unknown" ]
940 panic "Unknown file system type on ${backdev} (${image})"
943 mkdir -p "${croot}/${imagename}"
944 echo "debug: Can not mount backdev ${backdev} (image = ${image}) on croot/imagename ${croot}/${imagename}"
945 mount -t "${fstype}" -o ro,noatime "${backdev}" "${croot}/${imagename}" || panic "Can not mount ${backdev} (${image}) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}"
949 rofsstring=${rofsstring%:}
955 # Looking for "${root_persistence}" device or file
956 if [ -n "${PERSISTENT}" ]
958 cowprobe=$(find_cow_device "${root_persistence}")
960 if [ -b "${cowprobe}" ]
962 cowdevice=${cowprobe}
963 cow_fstype=$(get_fstype "${cowprobe}")
965 [ "${quiet}" != "y" ] && log_warning_msg "Unable to find the persistent medium"
969 rofscount=$(echo ${rofslist} |wc -w)
971 if [ -n "${EXPOSED_ROOT}" ]
973 if [ ${rofscount} -ne 1 ]
975 panic "only one RO file system supported with exposedroot: ${rofslist}"
977 exposedrootfs=${rofslist%% }
979 mount --bind ${exposedrootfs} ${rootmnt} || \
980 panic "bind mount of ${exposedrootfs} failed"
982 mount ${cowdevice} -t ${cow_fstype} -o rw,noatime /cow || \
983 panic "Can not mount ${cowdevice} on /cow"
985 cow_dirs='/tmp /var/tmp /var/lock /var/run /var/log /var/spool
986 /home /live /var/lib/live'
988 for dir in ${cow_dirs}; do
990 mount -t ${UNIONTYPE} \
991 -o rw,noatime,dirs=/cow${dir}=rw:${exposedrootfs}${dir}=ro \
992 ${UNIONTYPE} "${rootmnt}${dir}" || \
993 panic "mount ${UNIONTYPE} on ${rootmnt}${dir} failed with option \
994 rw,noatime,dirs=/cow${dir}=rw:${exposedrootfs}${dir}=ro"
997 mount ${cowdevice} -t ${cow_fstype} -o rw,noatime /cow || \
998 panic "Can not mount ${cowdevice} on /cow"
999 mount -t ${UNIONTYPE} -o noatime,dirs=/cow=rw:${rofsstring} \
1000 ${UNIONTYPE} "${rootmnt}" || panic "mount ${UNIONTYPE} on \
1001 ${rootmnt} failed with option noatime,dirs=/cow=rw:${rofsstring}"
1004 # Adding other custom mounts
1005 if [ -n "${PERSISTENT}" ]
1007 # directly mount /home
1008 # FIXME: add a custom mounts configurable system
1009 homecow=$(find_cow_device "${home_persistence}" )
1011 if [ -b "${homecow}" ]
1013 mount -t $(get_fstype "${homecow}") -o rw,noatime "${homecow}" "${rootmnt}/home"
1014 export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy()
1016 [ "${quiet}" != "y" ] && log_warning_msg "Unable to find the persistent home medium"
1019 # Look for other snapshots to copy in
1020 try_snap "${root_snapshot_label}" "${rootmnt}" "ROOT"
1021 try_snap "${home_snapshot_label}" "${rootmnt}/home" "HOME"
1024 if [ -n "${SHOWMOUNTS}" ]
1026 for d in ${rofslist}
1028 mkdir -p "${rootmnt}/live/${d##*/}"
1032 # do nothing # mount -o bind "${d}" "${rootmnt}/live/${d##*/}"
1036 mount --move "${d}" "${rootmnt}/live/${d##*/}"
1042 # shows cow fs on /cow for use by live-snapshot
1043 mkdir -p "${rootmnt}/live/cow"
1044 mount -o move /cow "${rootmnt}/live/cow"
1051 skip_uuid_check="${3}"
1053 if [ -z "${devname}" ]
1055 devname=$(sys2dev "${sysdev}")
1058 if [ -n "${LIVE_MEDIA_OFFSET}" ]
1060 loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '')
1061 devname="${loopdevname}"
1064 fstype=$(get_fstype "${devname}")
1066 if is_supported_fs ${fstype}
1068 mount -t ${fstype} -o ro,noatime "${devname}" ${mountpoint} || continue
1070 if is_live_path ${mountpoint} && \
1071 ([ "${skip_uuid_check}" ] || matches_uuid ${mountpoint})
1076 umount ${mountpoint}
1080 if [ -n "${LIVE_MEDIA_OFFSET}" ]
1082 losetup -d "${loopdevname}"
1092 # first look at the one specified in the command line
1093 if [ ! -z "${LIVE_MEDIA}" ]
1095 if check_dev "null" "${LIVE_MEDIA}" "skip_uuid_check"
1101 # don't start autodetection before timeout has expired
1102 if [ -n "${LIVE_MEDIA_TIMEOUT}" ]
1104 if [ "${timeout}" -lt "${LIVE_MEDIA_TIMEOUT}" ]
1110 # or do the scan of block devices
1111 for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram)
1113 devname=$(sys2dev "${sysblock}")
1114 fstype=$(get_fstype "${devname}")
1116 if /lib/udev/cdrom_id ${devname} > /dev/null
1118 if check_dev "null" "${devname}"
1122 elif is_nice_device "${sysblock}"
1124 for dev in $(subdevices "${sysblock}")
1126 if check_dev "${dev}"
1131 elif [ "${fstype}" = "squashfs" -o \
1132 "${fstype}" = "ext2" -o \
1133 "${fstype}" = "ext3" ]
1135 # This is an ugly hack situation, the block device has
1136 # an image directly on it. It's hopefully
1137 # live-initramfs, so take it and run with it.
1138 ln -s "${devname}" "${devname}.${fstype}"
1139 echo "${devname}.${fstype}"
1149 if [ -x /sbin/usplash_write ]
1151 /sbin/usplash_write "PULSATE"
1155 set_usplash_timeout ()
1157 if [ -x /sbin/usplash_write ]
1159 /sbin/usplash_write "TIMEOUT 120"
1173 [ "${quiet}" != "y" ] && log_begin_msg "Running /scripts/live-premount"
1175 run_scripts /scripts/live-premount
1176 [ "${quiet}" != "y" ] && log_end_msg
1178 # Needed here too because some things (*cough* udev *cough*)
1179 # changes the timeout
1183 if [ ! -z "${NETBOOT}" ] || [ ! -z "${FETCH}" ]
1187 livefs_root="${mountpoint}"
1189 panic "Unable to find a live file system on the network"
1192 # Scan local devices for the image
1193 for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1195 livefs_root=$(find_livefs ${i})
1197 if [ -n "${livefs_root}" ]
1206 if [ -z "${livefs_root}" ]
1208 panic "Unable to find a medium containing a live file system"
1214 elif [ "${TODISK}" ]
1216 live_dest="${TODISK}"
1219 if [ "${live_dest}" ]
1221 log_begin_msg "Copying live media to ${live_dest}"
1222 copy_live_to "${livefs_root}" "${live_dest}"
1226 if [ -n "${MODULETORAMFILE}" ]
1228 setup_unionfs "${livefs_root}" "${rootmnt}"
1230 mount_images_in_directory "${livefs_root}" "${rootmnt}"
1235 maybe_break live-bottom
1236 [ "${quiet}" != "y" ] && log_begin_msg "Running /scripts/live-bottom"
1239 run_scripts /scripts/live-bottom
1240 [ "${quiet}" != "y" ] && log_end_msg
1244 cp live.log "${rootmnt}/var/log/"