Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,12 @@ grub_install() {
return 1
fi

echo 'XXXXXXXXXXXXX mount output follows'
mount
echo 'XXXXXXXXXXXXX grub.cfg follows'
cat /boot/grub/grub.cfg
echo 'XXXXXXXXXXXXX end'

if mountpoint -q /boot/efi ; then
umount /boot/efi
fi
Expand Down
13 changes: 5 additions & 8 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -1814,12 +1814,6 @@ iface ${interface} inet dhcp
bailout 1
fi
fi

if [ -d /run/udev ] ; then
einfo "Setting up bind-mount /run/udev"
mkdir -p "${MNTPOINT}"/run/udev
mount --bind /run/udev "${MNTPOINT}"/run/udev
fi
}
# }}}

Expand Down Expand Up @@ -1879,8 +1873,11 @@ chrootscript() {
eend 1
else
einfo "Executing chroot-script now"
mount -t devtmpfs udev "${MNTPOINT}"/dev
mount -t devpts devpts "${MNTPOINT}"/dev/pts
# Linux kernel only has a *single* instance of devtmpfs. Mounting it
# with -t devtmpfs will give the chroot the *same* instance as the host has.
# To avoid modifying the host /dev, we provide a read-only bind mount.
mount -o bind,ro /dev "${MNTPOINT}"/dev
mount -t devpts -o newinstance devpts "${MNTPOINT}"/dev/pts
if [ "$DEBUG" = "true" ] ; then
clean_chroot "$MNTPOINT" /bin/bash -x /bin/chroot-script
else
Expand Down
Loading