1.1 --- a/README.txt Sat May 29 23:51:42 2010 +0200
1.2 +++ b/README.txt Sun May 30 19:47:11 2010 +0200
1.3 @@ -203,6 +203,26 @@
1.4
1.5 apt-get update
1.6
1.7 +Creating and Entering a Package Manager in Root Mode
1.8 +----------------------------------------------------
1.9 +
1.10 +The user-setup, user-postsetup and user-do scripts also support a --root
1.11 +option which sets up a package manager for a user with root privileges. To
1.12 +set up such an installation, the following commands could be used:
1.13 +
1.14 +sudo user-setup --root
1.15 +sudo user-postsetup
1.16 +
1.17 +Entering the installation is done using the user-do script:
1.18 +
1.19 +sudo user-do --root
1.20 +
1.21 +Note that in root mode, the /proc and /sys filesystems are mounted within the
1.22 +installation. Care must be taken not to delete the contents of these
1.23 +directories within the installation while the above command is running;
1.24 +otherwise, this can potentially damage the main operating system installation
1.25 +on your computer.
1.26 +
1.27 Constructing UML Instances
1.28 --------------------------
1.29
1.30 @@ -252,6 +272,7 @@
1.31 Entering or Starting UML Instances
1.32 ----------------------------------
1.33
1.34 -To enter a UML instance, use the uml-do script:
1.35 +To enter a UML instance, use the uml-do script, specifying an amount of memory
1.36 +to allocate to the instance:
1.37
1.38 -uml-do
1.39 +uml-do 512M
2.1 --- a/user-do Sat May 29 23:51:42 2010 +0200
2.2 +++ b/user-do Sun May 30 19:47:11 2010 +0200
2.3 @@ -13,7 +13,11 @@
2.4
2.5 if [[ $1 == '--root' ]]; then
2.6 shift 1
2.7 + mount -o bind /proc $PACKAGEROOT/proc
2.8 + mount -o bind /sys $PACKAGEROOT/sys
2.9 chroot $PACKAGEROOT $*
2.10 + umount $PACKAGEROOT/proc
2.11 + umount $PACKAGEROOT/sys
2.12 else
2.13 fakeroot fakechroot $FAKECHROOT_OPTIONS chroot $PACKAGEROOT $*
2.14 fi