Develop to master #3

Merged
maximstewart merged 18 commits from develop into master 2020-05-02 11:14:56 +00:00
2 changed files with 10 additions and 5 deletions
Showing only changes of commit 96c599441a - Show all commits

View File

@ -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"
}

View File

@ -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/
}