Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=d9e79931fe99ddab45473d054f20506d82879100

commit d9e79931fe99ddab45473d054f20506d82879100
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sat Nov 5 01:44:33 2011 +0100

make target list and root fs size configurable

diff --git a/bin/create-rootfs b/bin/create-rootfs
index 29ccc03..aea4ad8 100755
--- a/bin/create-rootfs
+++ b/bin/create-rootfs
@@ -11,7 +11,7 @@ fi
# Mount loop
mkdir -p $CHROOTDIR
rm -f $TREE/rootfs.img
-dd if=/dev/zero of=$TREE/rootfs.img bs=1 count=0 seek=1G
+dd if=/dev/zero of=$TREE/rootfs.img bs=1 count=0 seek=$SIZE
mkfs.ext4 -F $TREE/rootfs.img
mount -o loop $TREE/rootfs.img $CHROOTDIR
mkdir -p $CHROOTDIR/{etc,proc,sys,var/cache/pacman-g2,var/tmp/fst,tmp,var/log}
@@ -74,7 +74,7 @@ if [ $TREE == "stable" ]; then
echo "[frugalware]" > pacman-g2.conf
fi
echo "Server = $MIRROR/frugalware-$TREE/frugalware-$ARCH" >> pacman-g2.conf
-pacman -Sy base -r "$CHROOTDIR" --noconfirm --config pacman-g2.conf
+pacman -Sy $TARGETS -r "$CHROOTDIR" --noconfirm --config pacman-g2.conf

# Post-install tweaks
chroot $CHROOTDIR sh -c 'echo "root:fwlive" | chpasswd'
diff --git a/config.dev b/config.dev
index a85fe7d..e75acc9 100644
--- a/config.dev
+++ b/config.dev
@@ -6,6 +6,12 @@ ARCH=`uname -m`
# choice stable after 1.6
TREE="current"

+# Space-separated list of packages or groups.
+TARGETS="base"
+
+# root filesystem size (compressed free space is cheap!)
+SIZE="1G"
+
# Mirror to use
MIRROR="http://ftp.frugalware.org/pub/frugalware";
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to