mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-14 04:31:16 +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
live-build/ubuntu-cpc
@ -66,11 +66,9 @@ mount_image() {
|
||||
return 0
|
||||
}
|
||||
|
||||
mount_partition() {
|
||||
partition="$1"
|
||||
mountpoint="$2"
|
||||
setup_mountpoint() {
|
||||
local mountpoint="$1"
|
||||
|
||||
mount "$partition" "$mountpoint"
|
||||
mount --bind /dev "$mountpoint/dev"
|
||||
mount devpts-live -t proc "$mountpoint/dev/pts"
|
||||
mount proc-live -t proc "$mountpoint/proc"
|
||||
@ -78,6 +76,15 @@ mount_partition() {
|
||||
mount -t tmpfs none "$mountpoint/tmp"
|
||||
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
|
||||
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/
|
||||
|
||||
setup_mountpoint mountpoint
|
||||
|
||||
case $ARCH in
|
||||
amd64|i386) should_install_grub=1;;
|
||||
*) should_install_grub=0;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user