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:...
Update spec file for new version
Update debian build scripts * Fix qemu dep * Update maintainer to be me * Version bump
Ignore debian temp build files
Mention hooks directory change
add time for the system to settle
They don't even get sent since we have set -e set
Revert "add sanity checks for uuids"
This reverts commit dbaeaa2e4d7b6858c6a5a9f97862892d9ebdba14.
add sanity checks for uuids
Sometimes the uuid's don't get set or found properly
use new variable
fix syntax error
Update changelog, prep for 0.5 release
Ticket #3855: New hook for properly setting DHCP clients for DDNS
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 #3849: Fix Hostnames being set incorrectly on Debian/Ubuntu
Ticket #2295: Improvements for installing on Debian Lenny
Ticket #3687: Add --DOS flag to give better support for grub2
Ticket #1737: Also delete .pub key files
Ticket #669: set CDINSTALL=no for default behaviour
Ticket #243: Add support for resetting the ssh host keys in Debian/Ubuntu
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 #1767 add /usr/sbin and /sbin to paths
Ticket #939: add rpm spec file
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
Include debian package files for building deps (Issue #93)
Thanks to Ed Lim for the patch!
Change the customization directory
Align with other upstream packages. See commit f79e471d in instance-debootstrapfor more explaination.
example kickstart/preseed files
fix typo
Release 0.4
update documentation
switch default image type to dump
misc fixes to grub settings
Add partial grub2 support
We still cannot run update-grub inside of the chroot so all the settings wechanged will not be updated. Running update-grub after the instance is onlineshould fix this issue. I plan to open a bug to try and get this fixed upstream...
Release 0.3.1
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
check to make sure the device actually exists
Release 0.3
Add documentation for the new static IP feature
Move variants.list to /etc and create a symlink back to /usr/share
rename directory to hooks to line up with upstream
Fix typoes and missing closing fi's
add missing variable
Add support for setting IPs statically
Release 0.2
Add and update changelog
Add ability to set the filesystem to either ext3 or ext4
Add ability to manually set the size of the swap partition
update gitignore
Add AUTHORS file
Update documentation with dump details and other misc fixes
cleanup kpartx after we're done
Install the helper scripts into the instance os scripts directory under tools
Add optional helper scripts for creating image dumps
Add optional helper scripts for mounting nodes automatically
Fix logic for when to install grub
disable grub2 support for now until a solution is found
fix regex to be more aggresive when fixing serial on ubuntu
fix logic for when to install grub
Fix grub installs for 2.x
Merge branch 'master' of ssh://git.osuosl.org/var/git/ganeti-instance-image
Move boot_dir higher, and fix TARGET variables
deal with serial in karmic since it works differently
If the grub config is using UUID, ensure it gets updated
Other fixes include only skip setting up grub, don't skip setting up the serialstuff.
fix the path for lsb_release
fix sed command
Tell sed to follow symlinks
Use agetty instead of mingetty
Fix logic to be correct
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 proper console option to kernel options
Also fix grub-2.x so that it points to the correct file to munge, and also runupdate-grub once its done.
Add support for setting up serial consoles with grub
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.
local can only be used in functions
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...
Only setup grub if there isn't a kernel set in kernel_path
Clean up interface setup
Adjust logic for when to setup grub
Deciding when to setup grub is a pain depending on several situations. Ifyou're using tarball, you may or may not use a kernel outside of theinstall. But if you're importing/exporting, you are still in a similarsituation. This logic should fix it hopefully.
Add initial support for dump/restore based images
Check both instance name with and without fdqn
Fix rename
Create temp directory for dumps
add -f to mkswap to remove warning message
Switch to having dump compress the images on the fly, fix a few bugs too
Fix logic which determines when to run grub by default
Improve and fix import/export to using separate dump files and tar
Also condense the code some more and reduce redundancy.
Don't format the disk during an export (mis-paste on my part)