-
Notifications
You must be signed in to change notification settings - Fork 1
Building Images
jaybuff edited this page Apr 26, 2011
·
6 revisions
Several images of base installs of popular distributions are already available at getjoot.org. See http://getjoot.org/images/index.js for a complete list. For information about the format of that file and how to publish your own images see Publishing Images.
export image_name=ubuntu-10.10-i386
export image_file=~/images/$image_name.qcow2
joot_image --create $image_file --size 10G
joot_image --mount $image_file /mnt/$image_name
sudo apt-get install debootstrap
sudo debootstrap --variant=buildd --arch i386 maverick /mnt/$image_name/ \
http://archive.ubuntu.com/ubuntu/
sudo env LANG=C chroot /mnt/$image_name bash -c "apt-get install -y \
--force-yes sudo language-pack-en vim ssh man && apt-get clean"
joot_image --umount $image_file
sudo rmdir /mnt/$image_name
I'm not sure of the legality of publishing these images, so I haven't posted any of these images on getjoot.org. If someone builds an image that is pure darwin (all of darwin is open source) with no proprietary images, please let me know!
# Insert Mac OS X installation disk (assumes 10.5.7)
export image_name=mac_os_x-10.5.7
export image_file=~/images/$image_name.sparseimage
mkdir ~/images
hdiutil create -type SPARSE -fs HFS+ -volname $image_name -size 5g -attach \
$image_file
touch /Volumes/$image_name/.metadata_never_index # Prevent spotlight indexing
for P in BaseSystem Essentials BSD X11User; do \
sudo installer -target /Volumes/$image_name -pkg \
'/Volumes/Mac OS X Install DVD/System/Installation/Packages/'$P.pkg;\
done
curl -L http://support.apple.com/downloads/DL827/en_US/MacOSXUpdCombo10.5.7.dmg\
-O /tmp/MacOSXUpdCombo10.5.7.dmg
hdiutil attach /tmp/MacOSXUpdCombo10.5.7.dmg
sudo installer -target /Volumes/$image_name -pkg \
/Volumes/'Mac OS X Update Combined'/MacOSXUpdCombo10.5.7.pkg
hdiutil detach /Volumes/'Mac OS X Update Combined'
rm /tmp/MacOSXUpdCombo10.5.7.dmg
hdiutil detach /Volumes/$image_name -force