]> piware.de Git - bin.git/blobdiff - makechroot
postinst-setup: bump postgresql version
[bin.git] / makechroot
index f2330327046a18a6e67fe6c712f2962bf212b9c7..b255b7b525f093f3cd5d1ccc8cba80c98d7612c0 100755 (executable)
@@ -29,10 +29,10 @@ if ! grep -q $DIR /etc/fstab; then
     cat <<EOF >> /etc/fstab
 
 # $DIST chroot
-/home           $DIR/home none    bind    0 0
-/proc           $DIR/proc none    bind    0 0
-/sys            $DIR/sys  none    bind    0 0
-/tmp            $DIR/tmp  none    bind    0 0
+/home/martin    $DIR/home/martin none    bind   0 0
+/proc           $DIR/proc        none    bind   0 0
+/sys            $DIR/sys         none    bind   0 0
+/tmp            $DIR/tmp         none    bind   0 0
 EOF
     mount $DIR/home
     mount $DIR/proc
@@ -41,6 +41,10 @@ EOF
 fi
 
 # apt sources
+if [ "$MIRROR" != "${MIRROR%file://}" ]; then
+    MIRROR=http://archive.ubuntu.com/ubuntu
+fi
+
 cat <<EOF > $DIR/etc/apt/sources.list
 deb     $MIRROR $DIST main restricted universe multiverse
 deb-src $MIRROR $DIST main restricted universe multiverse
@@ -55,5 +59,5 @@ EOF
 chroot $DIR apt-get update
 
 # common packages for development
-chroot $DIR apt-get install -y build-essential devscripts fakeroot
+chroot $DIR apt-get install -y build-essential fakeroot