summaryrefslogtreecommitdiff
path: root/morphlib/exts/rawdisk.write
Commit message (Collapse)AuthorAgeFilesLines
* Add a reference to write.help filePete Fotheringham2014-12-081-10/+2
|
* writeexts.py: convert 'mount' to context managerbaserock/pedroalvarez/rawdisk-to-device8Pedro Alvarez2014-12-011-35/+30
|
* Modify rawdisk.write to allow the deployment to devicesPedro Alvarez2014-12-011-6/+14
| | | | | | | This patch also modifies rawdisk.write to use the UPGRADE environment variable to figure out when is doing an upgrade or a fresh deployment. This change is important because os.path.isfile doesn't work with devices.
* Use the default symlink when creating the orig subvolume.Pedro Alvarez2014-11-051-1/+1
| | | | | | | | | | | | | | | This patch solves the issue caused by upgrading a system without a factory version. Currently we are only using the factory version to snapshot its orig subvolume to make faster the transfer of the new content (rsync won't have to send everything). The default symlink may not be present, but it can't be deleted easily using system-version-manager. This is a quick fix, but in the future we may want to not harcode the path from where we snapshot the orig subvolume. Or improve system-version-manager to make sure that the default symlink is always present.
* Merge remote-tracking branch 'origin/baserock/james/writeexts_support_jetson'baserock/richardmaw/james/writeexts_support_jetsonRichard Maw2014-08-121-3/+4
|
* deploy: Fix double exception in rawdisk.writeSam Thursfield2014-03-041-1/+2
| | | | | | | If the disk image was not yet created then the os.remove() call fails and the original exception gets lost, causing confusion and sadness. Also print status earlier on failure
* Make parse_autostart() into more general get_environment_boolean()Sam Thursfield2014-03-041-1/+1
| | | | | Also, be more flexible when parsing environment booleans -- convert to lower case and match 0/1 and true/false as well as yes/no.
* deploy: Finish off the Btrfs system layout implementationSam Thursfield2014-03-041-0/+2
| | | | | | | | | | | | | | | The shared state directories defined in writeexts.py (/var, /home etc.) are now separate Btrfs subvolumes that are mounted in place using fstab. There are some warnings on mounting /var and /srv about the mountpoint not being empty. Not yet investigated. If a configure extension has already added / to the fstab, use the device it chose rather than assuming /dev/sda. This is required for the vdaboot.configure extension that we use for OpenStack deployments. Similarly, if a configure extension has added an entry for a state directory in /etc/fstab already, we don't replace it with a /state/xxx directory. That's only done as a default behaviour.
* Deployment failures will now remove the disk imageDan Firth2013-10-141-2/+8
|
* Only upgrade an older extlinux configuration if we want one.Tiago Gomes2013-06-141-1/+2
|
* Set up a symlink to the default system version in rawdisk/kvm/vboxTiago Gomes2013-06-141-1/+9
| | | | | | | deployments Also Change them to use the "default" symlink in the extlinux.conf they create, instead of hardcoding the current system version name
* Use the name factory for the first system version.Tiago Gomes2013-05-231-1/+1
|
* Implement raw disk upgrades.Tiago Gomes2013-05-231-4/+50
| | | | | We perform this by cloning an existing orig directory and then updating the contents using rsync
* Refactor: Add WriteExtension.create_local_system methodLars Wirzenius2013-02-071-18/+3
| | | | | | | | | | This allows code sharing amongst all the places that create a system in a raw disk image. This also adds the creation of a factory-run subvolume, and fixes error messages for errors that happen during a disk image creation. Suggested-By: Richard Maw Suggested-By: Sam Thursfield
* Remove debugging outputLars Wirzenius2013-02-071-6/+0
| | | | Suggested-By: Richard Maw
* Add a write extension for raw disk imagesLars Wirzenius2013-02-061-0/+70