mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-15 21:01:47 +00:00
Make sure we still mount the kernel filesystems in the disk setup
We skip the previous unmount/remount behavior because that makes things unwieldly when there are multiple partitions; but we still have setup to do, so that /dev is available for grub, etc.
This commit is contained in:
parent
eb9b43defe
commit
e51a8f8aef
@ -66,11 +66,9 @@ mount_image() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_partition() {
|
setup_mountpoint() {
|
||||||
partition="$1"
|
local mountpoint="$1"
|
||||||
mountpoint="$2"
|
|
||||||
|
|
||||||
mount "$partition" "$mountpoint"
|
|
||||||
mount --bind /dev "$mountpoint/dev"
|
mount --bind /dev "$mountpoint/dev"
|
||||||
mount devpts-live -t proc "$mountpoint/dev/pts"
|
mount devpts-live -t proc "$mountpoint/dev/pts"
|
||||||
mount proc-live -t proc "$mountpoint/proc"
|
mount proc-live -t proc "$mountpoint/proc"
|
||||||
@ -78,6 +76,15 @@ mount_partition() {
|
|||||||
mount -t tmpfs none "$mountpoint/tmp"
|
mount -t tmpfs none "$mountpoint/tmp"
|
||||||
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
|
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
|
||||||
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"
|
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
mount_partition() {
|
||||||
|
partition="$1"
|
||||||
|
mountpoint="$2"
|
||||||
|
|
||||||
|
mount "$partition" "$mountpoint"
|
||||||
|
setup_mountpoint "$mountpoint"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,6 +70,8 @@ fi
|
|||||||
|
|
||||||
cp -a chroot/* mountpoint/
|
cp -a chroot/* mountpoint/
|
||||||
|
|
||||||
|
setup_mountpoint mountpoint
|
||||||
|
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64|i386) should_install_grub=1;;
|
amd64|i386) should_install_grub=1;;
|
||||||
*) should_install_grub=0;;
|
*) should_install_grub=0;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user