summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-20two diskimage edge case fixesJoey Hess
* DiskImage: Fix rsync crash when a mount point does not exist in the chroot. * Fix bug in unmountBelow that caused unmounting of nested mounts to fail. This commit was sponsored by Jack Hill on Patreon.
2017-12-20Merge branch 'joeyconfig'Joey Hess
2017-12-20add missingJoey Hess
2017-12-20responseJoey Hess
2017-12-20Merge branch 'master' of ssh://propellor.branchable.comJoey Hess
2017-12-20propellor spinJoey Hess
2017-12-20propellor spinJoey Hess
2017-12-20propellor spinJoey Hess
2017-12-20Merge branch 'master' into joeyconfigJoey Hess
2017-12-20disk partition alignmentJoey Hess
Cheap flash drives need partitions aligned to 4 MiB in order to not be slow (and to avoid extra writes). <https://lwn.net/Articles/428584/> And at least 1 MiB alignment is generally a good idea, and most people seem to think 4 MiB is for all drives. I noticed that Parted.partitioned does not do that; the first partition started at an offset of 1 MB, and subsequent partitions from where it ends. (The 1 MB offset came from the PartedVal PartSize instance, and note that it was not 1 MiB.) * Parted: Add an Alignment parameter. (API change) A good default to use is safeAlignment, which is 4MiB, well suited for inexpensive flash drives, and fine for other disks too. Previously, a very non-optimial 1MB (not 1MiB) alignment had been used. * DiskImage: Use safeAlignment. It didn't seem worth making the alignment configurable here. Alignment is implemented by offsetting the first partition's start position so it's aligned (making sure to leave room for the partition table). Each partition is then extended as needed so the next partition will start properly aligned. Note that parted rejects partition tables that don't fit in cylinder bounderies. Before, propellor let parted deal with the fine details of layout, so that was not a problem. Now it's possible to set some wacky Alignment not divisible by 512, or use Byte sizes for partitions and create a partition table that parted rejects. But, using safeAlignment and MegaBytes should always be safe. Also, this fixes a rounding bug in Parted.calcPartTable. It was rounding up to the nearest MegaByte when allocating remaining disk space, so returned partition table that was actually larger than the disk size. This commit was sponsored by an anonymous bitcoiner.
2017-12-20Added a commentgueux
2017-12-20(no commit message)gueux
2017-12-20Added a commentgueux
2017-12-20Added a commentgueux
2017-12-20Added a commentgueux
2017-12-20Parted: Fix names used for FAT and VFAT partitions.Joey Hess
Use "fat32" for both; these are not distinguished at the partition table level. This commit was sponsored by Henrik Riomar on Patreon.
2017-12-20setting up joeyconfig after mergeJoey Hess
2017-12-20commentJoey Hess
2017-12-20commentJoey Hess
2017-12-20(no commit message)gueux
2017-12-19(no commit message)gueux
2017-12-19Added a commentgueux
2017-12-19Added a commentgueux
2017-12-19(no commit message)gueux
2017-12-19(no commit message)gueux
2017-12-16Merge branch 'joeyconfig'Joey Hess
2017-12-16responseJoey Hess
2017-12-16Added a commentspwhitton
2017-12-13Added a commentpicca
2017-12-08Added a commentpicca
2017-12-08Added a commentspwhitton
2017-12-08Added a comment: diagnosisspwhitton
2017-12-08removedspwhitton
2017-12-08Added a commentspwhitton
2017-12-07(no commit message)picca
2017-12-06avoid redundant "has has"Joey Hess
2017-12-06propellor spinJoey Hess
2017-12-05propellor spinJoey Hess
2017-12-05propellor spinJoey Hess
2017-12-03updateJoey Hess
2017-12-03newer branchJoey Hess
2017-12-03Merge branch 'joeyconfig'Joey Hess
2017-12-03commentJoey Hess
2017-11-29propellor spinJoey Hess
2017-11-29bootstrappedFrom: Set up local privdata file.Joey Hess
Avoid needing to --spin host deployed from disk image to let its propellor access its privdata. This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2017-11-29Merge branch 'master' into joeyconfigJoey Hess
2017-11-29propellor spinJoey Hess
2017-11-29propellor spinJoey Hess
2017-11-29bugJoey Hess
2017-11-29propellor spinJoey Hess