summaryrefslogtreecommitdiff
path: root/src/Propellor/Property
AgeCommit message (Collapse)Author
2017-12-20add missingJoey Hess
2017-12-20propellor spinJoey 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-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-06avoid redundant "has has"Joey Hess
2017-12-05propellor 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-22Merge branch 'master' into joeyconfigJoey Hess
2017-11-22propellor spinJoey Hess
2017-11-22propellor spinJoey Hess
2017-11-21propellor spinJoey Hess
2017-11-20improve haddock for File.isSymlinkedToSean Whitton
2017-11-20prevent Sbuilt.useHostProxy from looping by not peeking too earlyJoey Hess
2017-11-19shorten output when destroying a schroot, tooSean Whitton
2017-11-19Merge branch 'master' of https://git.joeyh.name/git/propellor into ↵Sean Whitton
sbuild-overhaul
2017-11-19slightly improve readability of sample usageSean Whitton
2017-11-19typo in exampleJoey Hess
2017-11-19Merge branch 'joeyconfig'Joey Hess
2017-11-19Merge branch 'joeyconfig'Joey Hess
2017-11-19need rsync for upload cron jobJoey Hess
2017-11-19add commaJoey Hess
2017-11-19fix haddockJoey Hess
2017-11-19partition table in InfoJoey Hess
Diskimage.imageBuiltFor: New property to build a disk image for a Host, using partition table information configured via the new properties hasPartitionTableType, hasPartition and adjustPartition. This lets Machine properties include eg /boot partitions that are known to be needed by the bootloader, and the user can adjust those partitions and add others. This commit was sponsored by Brock Spratlen on Patreon.
2017-11-19Merge branch 'master' of https://git.joeyh.name/git/propellor into ↵Sean Whitton
sbuild-overhaul
2017-11-19remove dead codeJoey Hess
2017-11-18insert missing call to aliasesLineSean Whitton
2017-11-18propertyList -> combineProperties to reduce noiseSean Whitton
2017-11-18fix name shadowing in Sbuild.useHostProxySean Whitton
2017-11-18export Sbuild.useHostProxySean Whitton
2017-11-18resolve TODO regarding suggested Sbuild usageSean Whitton
2017-11-18implement Sbuild.useHostProxySean Whitton
2017-11-18stop automatically setting up a proxy in the sbuild chrootSean Whitton
Instead, provide a property to let the user tell propellor to propagate the host's proxy into the chroot. This makes it easy to toggle on and off and lets the user explicitly specify how they want the chroot's proxy setup to work.
2017-11-18reorganizedJoey Hess
2017-11-18fix orderJoey Hess
2017-11-18service restart hostapd stops it for some reasonJoey Hess
2017-11-18propellor spinJoey Hess
2017-11-17homepower fixesJoey Hess
2017-11-17propellor spinJoey Hess
2017-11-17Service: Avoid starting services when noServices is used.Joey Hess
Reconsidered making services never run inside chroots, that seemed too potentially limiting. Using Info rather than checking policy-rc.d because it will also work outside of debian, but more because policy-rc.d has an extremely complicated interface and I didn't want to deal with it. This commit was sponsored by Jochen Bartl on Patreon.
2017-11-17propellor spinJoey Hess
2017-11-17propellor spinJoey Hess
2017-11-17don't start services in chrootsJoey Hess
Service: Changed to use invoke-rc.d rather than service for starting services. This notably means that in chroots, services will not be started. This seems like the right thing to do, because running services inside a chroot is problimatic. Use a real container system for running services. Fixes the problem that, when building a disk image, using eg, Apt.servicesInstalledRunning caused the service to be started in the chroot, even though a policy-rc.d was in place to prevent it, because the "service" command does not check policy-rc.d. This commit was sponsored by John Peloquin on Patreon.
2017-11-17fixed for bootstrapping honeybee from chrootJoey Hess
Install dnsmasq first to avoid connfile conflict Don't set up container when in chroot, won't work. Propellor should perhaps prevent this..
2017-11-17propellor spinJoey Hess
2017-11-17tested banana piJoey Hess
This commit was sponsored by André Pereira on Patreon.
2017-11-17tested 2 more arm boards and added a bunch moreJoey Hess
All the ones that https://wiki.debian.org/InstallingDebianOn/Allwinner says have been tested will probably work. This commit was sponsored by Francois Marier on Patreon.
2017-11-17propellor spinJoey Hess
2017-11-17update initramfs and flash-kernel during disk image finalizationJoey Hess
flashKernelMounted is slightly cargo culted from Grub.bootsMounted, could be refactored. This commit was sponsored by Thom May on Patreon.
2017-11-17propellor spinJoey Hess
2017-11-17fix error msgJoey Hess