diff options
author | rjones <rjones> | 2009-03-20 11:01:39 +0000 |
---|---|---|
committer | rjones <rjones> | 2009-03-20 11:01:39 +0000 |
commit | 1b640fb0bd84f88d378b6c4a74088ac22c8f7d75 (patch) | |
tree | eff1b6ec217a57102ca8a84d9f0f70d6aa44fc40 /examples/minimal-filesystem.sh | |
parent | dc60cc1bb950870269252135186e69d2ba4db994 (diff) | |
download | febootstrap-1b640fb0bd84f88d378b6c4a74088ac22c8f7d75.tar.gz febootstrap-1b640fb0bd84f88d378b6c4a74088ac22c8f7d75.tar.xz febootstrap-1b640fb0bd84f88d378b6c4a74088ac22c8f7d75.zip |
Add first version of the febootstrap-minimize script.
Diffstat (limited to 'examples/minimal-filesystem.sh')
-rwxr-xr-x | examples/minimal-filesystem.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/minimal-filesystem.sh b/examples/minimal-filesystem.sh index 74a4c2c..1ef6928 100755 --- a/examples/minimal-filesystem.sh +++ b/examples/minimal-filesystem.sh @@ -12,7 +12,13 @@ # few command line utilities. One of the joys of Fedora is that even # this minimal install is still 200 MB ... -../febootstrap -i bash -i coreutils fedora-10 ./minimal +../febootstrap -i bash -i coreutils fedora-10 ./minimal $1 + +# ... but let's minimize it aggressively. + +echo -n "Before minimization: "; du -sh minimal +../febootstrap-minimize --all ./minimal +echo -n "After minimization: "; du -sh minimal # Create the /init which is just a simple script to give users an # interactive shell. @@ -39,6 +45,6 @@ dd if=/dev/zero of=zero bs=2048 count=1 # Now run qemu to boot this minimal system. qemu-system-$(arch) \ - -m 1024 \ + -m 128 \ -kernel vmlinuz -initrd minimal-initrd.img \ -hda zero -boot c |