diff --git a/CONFIG_SCRIPTS.sh b/CONFIG_SCRIPTS.sh index 8b2ee5d..edc48cc 100755 --- a/CONFIG_SCRIPTS.sh +++ b/CONFIG_SCRIPTS.sh @@ -57,10 +57,11 @@ function chroot_big_dump_mesage() { echo "\nRun once in chroot:" echo "\tapt-get update" echo "\tapt-get install --yes dbus" - echo "\tapt-get --yes upgrade" echo "\tdbus-uuidgen > /var/lib/dbus/machine-id" echo "\tdpkg-divert --local --rename --add /sbin/initctl" + echo "\tapt-get --yes upgrade" + echo "Note: You probably should copy to a notepad the following..." echo "\nThere is a current (for Karmic, ..., Precise) issue with services running in a chroot:" echo "\thttps://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430224." echo "\nA workaround is to link /sbin/initctl to /bin/true:" @@ -69,5 +70,9 @@ function chroot_big_dump_mesage() { echo "\nInstall packages needed for Live System (I think 'ubuntu-standard' package is optional.):" echo "\tapt-get install --yes casper lupin-casper" echo "\tapt-get install --yes discover laptop-detect os-prober" + echo "\nTo actually install the system you'll need one of the following or something similar..." echo "\tapt-get install --yes linux-generic" + echo "\tapt-get install --yes ubiquity-frontend-gtk" + echo "\t\tOR" + echo "\tapt-get install --yes ubiquity-frontend-kde" } diff --git a/step_2_chroot.sh b/step_2_chroot.sh index ce90af4..ef8137f 100755 --- a/step_2_chroot.sh +++ b/step_2_chroot.sh @@ -16,9 +16,9 @@ function main() { clear # Mount stuff - sudo mount -o /dev "${CHROOT_PTH}"/dev/ - sudo mount -t proc proc proc/ - sudo mount -t sysfs sys sys/ + sudo mount --bind /dev "${CHROOT_PTH}"/dev/ + sudo mount -t proc proc "${CHROOT_PTH}"/proc/ + sudo mount -t sysfs sys "${CHROOT_PTH}"/sys/ # setup some configs stuff for internetz sudo cp /etc/hosts "${CHROOT_PTH}"/etc/hosts @@ -32,7 +32,7 @@ function main() { sudo chroot "${CHROOT_PTH}" # cleanup - sudo umount -lf "${CHROOT_PTH}"/dev/ + sudo umount "${CHROOT_PTH}"/dev/ sudo umount -lf "${CHROOT_PTH}"/proc/ sudo umount -lf "${CHROOT_PTH}"/sys/ }