History | View | Annotate | Download (14.9 kB)
Force the use of 128 bytes inode size in ext?
This is needed by some GRUB legacy versions like the one shipped withCentOS 5.x
Generalize filesystem autorelabeling enforcement
Autorelabeling is needed by all redhat derived OSs, not just fedora.Also, rename filesystem_check routine to epilogue
Add code to detect Ubuntu OS in get_os
Check /etc/lsb-release to detect ubuntu systems. Also completely remove/usr/bin/lsb_release execution to detect os. There are systems likeUbuntu Server that have an executable /usr/bin/lsb_release that does notreturn usefull information and this makes os detection buggy.
Insert a new BOOT variable in common.sh
This variable instructs ganeti-instance-image wheather or not to createa boot partition in the instance creation process.
Fixed a bug in cleanup
The bug had to do with getting errors in device-mapper about resourcesbeing busy when trying to use "kpartx -d" in devices that hostedpreviously unmounted ntfs partitions.
Fixed support for recent Fedora images
Fixed a bug in the common.sh where the presence or absence of`lsb_release' program inside the image was not properly detected.
Forced filesystem relabeling in the initial boot of a Fedora image.This is needed by SELinux in recent Fedora releases, because in any other...
Merge git://git.osuosl.org/gitolite/ganeti/ganeti-instance-image
Ticket #4785: Set cache file to /dev/null to disable caching with blkid
We've had a constant problem with blkid not returning anything and thus erroringout installs/reinstalls, etc. It was discovered that it cached this content bydefault which was the root cause. Hopefully this will resolve that issue.
Added the img_format OS parameter
Initial commit to extend ganeti-instance-image
Ganeti Instance Image will be extended to supportGaneti OS Interface v20. The scope is to have an OS providerthat takes OS parameters from Ganeti and then uses them to customizethe Image creation process. The initial commit includes:...
Add "sync" after running mkfs/mkswap
Reduce normal commands output by redirecting to /dev/null
Much of the commands we run (i.e. mkfs, mkswap, sfdisk) produce output thatisn't really needed.
Ticket #3687: Add --DOS flag to give better support for grub2
Ticket #669: set CDINSTALL=no for default behaviour
Add sleep 2 call after mkfs
During re-installs using ext4, we need to give the system a little time after amkfs call. Otherwise blkid will not be able to get the UUID sometimes.
Ticket #219: Add NOMOUNT option to allow Windows install
Use included patch but extend to import, export, and rename scripts. For nowrename does nothing since we have no way of knowing what the image might be(windows, linux, etc).
Ticket #207: Copy files into instances using overlays
Ticket #1749: Fix IMAGE_DEBUG to accept "yes" for enabling the feature
fix typo mentioned in Issue #99 and rename defaults -> default
Change the customization directory
Align with other upstream packages. See commit f79e471d in instance-debootstrapfor more explaination.
switch default image type to dump
sync filesystems prior to umounting
There's an annoying upstream bug with ext4 currently that makes umount's take along time to complete [1]. Its also good practice to do this anyways.
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/543617
add missing variable
Add ability to set the filesystem to either ext3 or ext4
Add ability to manually set the size of the swap partition
fix typo
fix regex to be more aggresive when fixing serial on ubuntu
deal with serial in karmic since it works differently
fix the path for lsb_release
fix sed command
Use agetty instead of mingetty
Use lsb_release inside of a chroot of the VM
use if fi statments otherwise it exits with 1 and fails
Add missing $target in setup_fstab for get_os_type
Add support for setting up the console automatically
Add get_os and get_os_release functions, refacter get_os_type
get_os: Returns the exact operating system
get_os_release: Returns the release of the operating system
Switch get_os_type to use an argument for the target location and also ensurethat it gets checked.
Add support for setting up /etc/fstab properly
Fix dynamic partition to use its own function
I discovered that bash wasn't setting the environment variables correctly andrealized I need to refactor how I do this. Now I have a map_partition to figureout the exact path for a specific partition.
NOTE: fstabs are currently broken because of this addition
Remove quotes from device in the sfdisk command
Add optional support for no /boot partition
Allow for more flexibility for which partitions you need or what. It will allowfor four different partition layouts depending on whether you want a swappartition or booting a kernel outside of the VM.
Also merge the partition mapping for root_dev, boot_dev, & swap_dev entirely...
add -f to mkswap to remove warning message
Make regex more clear and only do this on the end of the string
Refactor debugging code to be saner and actually work
Add VOL_ID and VOL_TYPE back for export
Move mkfs into common.sh so that its portable to other scripts
Move OS detection to common.sh to make it portable for other scripts
Also refactor how we use it in interfaces
code cleanup, remove bits we don't use from the debootstrap import
Create IMAGE_DEBUG variable to enable debugging output
DEBUG_LEVEL isn't working yet in ganeti [1], so lets add an option so we can atleast use something.
[1] http://groups.google.com/group/ganeti/browse_thread/thread/948ec6705ae69798
Check for qemu-img during install
Make it optional whether to create and use a swap partition
rename variable to something more useful
Refactor grub install into a custom script
We only need to use grub for tarball based installs since images should includea disk with grub already installed.
Add basic support for qemu-img based images
Also refactor mounting into a common function
allow for the location of IMAGE_DIR to be changed by the user
fix paths for variants
Check to make sure the first partition exists
Use correct env variable for memory
Add --with-defaults-dir option
Some distros don't use /etc/defaults
Add image unpacking feature
Format the 3 volumes and mount them correctly
Create 3 partitions for /boot swap & / by default
Add basic support for installing via a CD
remove caching code as its useless for this instance
Check for various important programs and set variables for them
Import from instance-debootstrap 17b5b2da0