https://bugzilla.novell.com/show_bug.cgi?id=674684 https://bugzilla.novell.com/show_bug.cgi?id=674684#c0 Summary: mount-rootfs-and-do-chroot.sh Classification: openSUSE Product: openSUSE 11.4 Version: RC 1 Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: snwint@novell.com ReportedBy: ohering@novell.com QAContact: jsrain@novell.com Found By: Outsourced Testing Blocker: --- Created an attachment (id=415981) --> (http://bugzilla.novell.com/attachment.cgi?id=415981) mount-rootfs-and-do-chroot.sh Please add the attached script to inst-sys and rescue image. It simplifies mounting a partition and doing work within the chroot. I meant to add such a helper since SLES9, but never got around to acutally do it. #!/bin/bash # Usage: $0 /dev/sda5 rootfs=$1 mnt=/rootfs.${PPID}.$$ mounts= if test -b "${rootfs}" then mkdir -v "${mnt}" mount -v "${rootfs}" "${mnt}" for i in dev proc sys do mount -v --bind /${i} "${mnt}/${i}" done chroot "${mnt}" su - while read b m rest do case "${m}" in ${mnt}*) mounts="${m} ${mounts}" ;; esac done <<-EOF ` cat < /proc/mounts ` EOF for i in ${mounts} do umount -v "${i}" done rmdir -v "${mnt}" fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.