History | View | Annotate | Download (5.9 kB)
Add an image file existence check
Change tabs to spaces in newly added comments
Use direct I/O when copying the image with dd
Deploying an image file on a target block device is a streamingcopy operation. Enable the direct I/O flag on the output fd toavoid polluting the host cache with useless data.
Do not setup fstab on extdump images
Fix grub installation when using a swap partition
Add support for extdump file format.
This file format like ntfsdump is a direct raw partition dump.
Change long if/else with case
This makes the code more readable.
Add support for ntfsdumps
Resize the ntfs partition from within Windows
This commit changes the way the ntfs volume is extended to cover thethe whole space of the partition it is hosted in. We now usediskpart.exe during the Windows Setup process of the Windows guestinstead of using ntfsresize during the instance creation phase in the...
Workaround a race condition in restore
restore's -r option is dangerous, because the temporeary /tmp/rstdir* and/tmp/rstmode* files it creates may be the same across different processesleading to race conditions. We tried to workaround this by replacing in...
Fix progress monitor support check in create
Add support for progress-monitor
Resize ntfs partition after restoring the image
ntfsclone does not resize the partition after it restores an ntfs image.We need to execute ntfsresize afterwards.
Add all needed dependencies in configure
Add checks for restore, ntfsclone, ntfsmount and install-mbr
Various fixes for ntfsclone
Add hook to set the hostname on linux instances
Add unattended setup support
In more detail:
Fixed a bug in create
Partition existence check code in create did not work correct because ofthe absence of " around the variables in the if expressions.
Added a partition existence check in create.
Added basic windows support
Added support for windows disk partitioning and ntfsclone's specialimage format. A hook was also added that installs a valid MBR capable ofbooting windows partitions.
Further seperation of linux-specific things.
Added prefix linux_ to all the common_linux.sh functions `create'accesses. This will keep things simple when the scripts are extended tosupport more OS Families like Windows.
Moved all hooks to a seperate `linux' directory inside...
Moved linux specific functions out of common.sh
Created a seperated file `common_linux.sh' to host all linux specificcommon functions. This makes the design cleaner in order to add windowssupport to gnt-instance-image.
Attention: I haven't touched export, import, rename and verify yet. Only...
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...
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 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
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 #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).
Fix logic for when to install grub
Add support for setting up the console automatically
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
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 initial support for dump/restore based images
Refactor debugging code to be saner and actually work
Move debug check until after we've sourced common.sh
Move mkfs into common.sh so that its portable to other scripts
code cleanup, remove bits we don't use from the debootstrap import
Add OSU Copyright headers
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
If debug is set, show commands in log file
Adjust image naming scheme to deal with qemu-img image files
Check for qemu-img during install
change variable name to something more useful
fix typo
Make it optional whether to create and use a swap partition
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
Set the $disk variable up
Remove extra whitespace, errors out otherwise
Add volume label so that CentOS boots
May need to see how other distros need adjustments
Use grub directly to install MBR as grub-install won't work correctly
Add support for installing grub for an image
Put umount cleanup command in the correct place
Create $TMPDIR/boot after mounting root
Add image unpacking feature
Format the 3 volumes and mount them correctly
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