|
|
@ -79,8 +79,7 @@ mount_image() {
|
|
|
|
setup_mountpoint() {
|
|
|
|
setup_mountpoint() {
|
|
|
|
local mountpoint="$1"
|
|
|
|
local mountpoint="$1"
|
|
|
|
|
|
|
|
|
|
|
|
mount --bind /dev "$mountpoint/dev"
|
|
|
|
mount --rbind /dev "$mountpoint/dev"
|
|
|
|
mount devpts-live -t proc "$mountpoint/dev/pts"
|
|
|
|
|
|
|
|
mount proc-live -t proc "$mountpoint/proc"
|
|
|
|
mount proc-live -t proc "$mountpoint/proc"
|
|
|
|
mount sysfs-live -t sysfs "$mountpoint/sys"
|
|
|
|
mount sysfs-live -t sysfs "$mountpoint/sys"
|
|
|
|
mount -t tmpfs none "$mountpoint/tmp"
|
|
|
|
mount -t tmpfs none "$mountpoint/tmp"
|
|
|
@ -141,11 +140,7 @@ umount_settle() {
|
|
|
|
umount_partition() {
|
|
|
|
umount_partition() {
|
|
|
|
local mountpoint=${1}
|
|
|
|
local mountpoint=${1}
|
|
|
|
mv resolv.conf.tmp "$mountpoint/etc/resolv.conf"
|
|
|
|
mv resolv.conf.tmp "$mountpoint/etc/resolv.conf"
|
|
|
|
for submnt in proc sys dev/pts dev tmp;
|
|
|
|
umount -R $mountpoint
|
|
|
|
do
|
|
|
|
|
|
|
|
umount $mountpoint/$submnt
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
umount $mountpoint
|
|
|
|
|
|
|
|
udevadm settle
|
|
|
|
udevadm settle
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${rootfs_dev_mapper}" -a -b "${rootfs_dev_mapper}" ]; then
|
|
|
|
if [ -n "${rootfs_dev_mapper}" -a -b "${rootfs_dev_mapper}" ]; then
|
|
|
|