summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-06-19forward port to stackage lts-20.25Andrew Cady
2022-01-10new fsmgr .yaml config directive: "files"Andrew Cady
2021-02-28config option "unit-files:" for systemd unit filesAndrew Cady
2020-05-30implement "apt-update" to install apt listsAndrew Cady
presently this hard-codes stretch & amd64
2020-05-28Begin support for "seeded images."Andrew Cady
A seeded image keeps its parent image as a read-only "seed" device that joins the seeded image in a multi-device btrfs filesystem. That means that to mount such an image, the parent image must be made available as a block device (e.g. using losetup, or dd to an existing block device and run btfrs device scan). Such support had been added to the Samizdat Makefile, but more properly belongs here. This is the sequence of commands used by sami.git's Makefile to accomplish the effect: rm -f $@~tmp touch $@~tmp fallocate -l $(samizdat_btrfs_patch_size) $@~tmp test -d $@.mnt || mkdir $@.mnt ! mountpoint -q $@.mnt || umount $@.mnt mount -o compress,ro -t btrfs $< $@.mnt a=$(get_loop_dev); [ -z "$$a" ] || losetup -d $$a losetup -f $@~tmp btrfs device add $(get_loop_dev) $@.mnt mount -o compress,rw,remount $@.mnt The Makefile also defines: get_loop_dev="$$(sudo losetup -n -O name -j $@~tmp)" The same basic sequence is carried out here. The config file format is modified so that to get a seeded image you specify "seedme: <bytes>" where <bytes> is the size of the seeded image. This feature is complete enough to create a seeded image (i.e., to replace the Makefile), but children of a seeded image seem impossible to work because there is no code yet to run losetup on seed images of parents. Thus it can be expected that deriving from a parent with a seed will fail when fsmgr tries to mount the parent.
2019-10-15implement 'binaries-optional:' and 'skel-files-optional:' sectionsAndrew Cady
2019-10-04factor out string functionsAndrew Cady
most of these were copied from MissingH
2019-10-03fix 32bitAndrew Cady
2019-06-19support for skel-filesAndrew Cady
2018-07-10separate module ConfigFileAndrew Cady
2018-06-17initial commitAndrew Cady