make
sudo make install
+Note, if you want to run the scripts locally without installing,
+you have to set the $PATH to the current directory, ie:
+
+ PATH=$(pwd):$PATH
+ febootstrap [...]
+
Feedback and bugs
-----------------
You don't need to be root, in fact, you *shouldn't* be root
when running these scripts!
+
+If you want to run the scripts without installing febootstrap,
+then you need to make your $PATH point to the top build
+directory, eg:
+
+ PATH=$(pwd)/..:$PATH
exit 1
fi
-../febootstrap \
+febootstrap \
-i bash \
-i coreutils \
-i lvm2 \
fedora-10 ./guestfs $1
echo -n "Before minimization: "; du -sh guestfs
-../febootstrap-minimize --all ./guestfs
+febootstrap-minimize --all ./guestfs
echo -n "After minimization: "; du -sh guestfs
# Create the /init which will scan for and enable all LVM volume groups.
chmod +x init
}
export -f create_init
-../febootstrap-run ./guestfs -- bash -c create_init
+febootstrap-run ./guestfs -- bash -c create_init
# Convert the filesystem to an initrd image.
-../febootstrap-to-initramfs ./guestfs > guestfs-initrd.img
+febootstrap-to-initramfs ./guestfs > guestfs-initrd.img
# Now run qemu to boot this guestfs system.
exit 1
fi
-../febootstrap -i bash -i coreutils fedora-10 ./minimal $1
+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 --pack-executables ./minimal
+febootstrap-minimize --all --pack-executables ./minimal
echo -n "After minimization: "; du -sh minimal
# Create the /init which is just a simple script to give users an
chmod +x /init
}
export -f create_init
-../febootstrap-run ./minimal -- bash -c create_init
+febootstrap-run ./minimal -- bash -c create_init
# Convert the filesystem to an initrd image.
-../febootstrap-to-initramfs ./minimal > minimal-initrd.img
+febootstrap-to-initramfs ./minimal > minimal-initrd.img
# This is needed because of crappiness with qemu.