summaryrefslogtreecommitdiff
path: root/hscript
AgeCommit message (Collapse)AuthorFilesLines
2020-05-24hscript: Implement 'svcenable' key and testsA. Wilcox5-0/+80
2020-05-15hscript: Ensure user commands are correct in simulatorA. Wilcox1-4/+9
2020-05-15hscript: Ensure user commands are run in the targetA. Wilcox1-4/+11
2020-05-15hscript: Don't change networking in image modeA. Wilcox1-1/+4
Network configuration on the host should not be changed if we are only creating an image.
2020-05-07image: Add functional TAR backendA. Wilcox1-7/+1
2020-04-02hscript: Overwrite existing /e/n/i file, if presentA. Wilcox1-1/+1
/etc/network/interfaces may already exists if an intermediate directory is being reused for image creation. Overwrite it, instead of appending to it.
2020-04-02hscript: Handle existing /etc/localtime in targetA. Wilcox1-0/+2
This can occur if you re-use an intermediate directory for images.
2020-04-01hscript: Rename Image flag to ImageOnlyA. Wilcox5-6/+6
Otherwise, this conflicts with the Horizon::Image namespace.
2020-03-26Script: Use --keys-dir during base installationA. Wilcox1-8/+15
If the system APK does not trust the keys specified in the HorizonScript, execution of the script would fail. This commit fixes that omission.
2020-03-24hscript: Implement 'Image' script optionA. Wilcox5-40/+49
This option is for generating images using Horizon. It skips most disk-related operations, except for preparing /etc/fstab. It also skips setting the running system's hostname.
2020-03-24hscript: Execute +arch+ key before APK pkgdb initA. Wilcox1-5/+5
Otherwise, the incorrect architecture's repositories are read during the `apk update` operation.
2020-03-24hscript: Don't overwrite fstab with each mountA. Wilcox1-1/+2
2020-03-24hscript: De-constify returned Horizon::Script* objectsA. Wilcox2-8/+6
2020-03-22hscript: Ensure partition 1 won't abut first disk sectorsA. Wilcox1-0/+3
2020-03-19hscript: Support creation of MBR disklabelsA. Wilcox1-1/+1
2020-03-18hscript: Support creation of /etc/network/interfacesA. Wilcox3-47/+157
2020-03-17hscript: Add new netconfigtype key and associated testsA. Wilcox4-0/+71
Not wired up to netaddress et al, but does parse properly.
2020-03-15hscript: Mount /dev, /proc, /sys under /targetA. Wilcox1-0/+25
2020-03-15script: More efficiently call apkA. Wilcox1-2/+5
2020-03-15meta: Handle underscores in architecture namesA. Wilcox1-1/+1
Otherwise, x86_64 and aarch64_be fail instantly: installfile:6: error: arch: expected CPU architecture name: 'x86_64' is not a valid CPU architecture name
2020-03-15script: Handle pre-existing network condition betterA. Wilcox1-3/+3
Previously, if /etc/resolv.conf existed, execution would fail with: internal: error: cannot use DNS configuration during installation: File exists If /etc/conf.d/net.$IFACE existed, execution would log: internal: error: could not use networking on eth0: File exists Fix both of these issues.
2020-03-15disk: Remove ability to undo e2fsA. Wilcox1-2/+0
This can use multiple GBs of RAM in /tmp, and/or fail with mkfs.ext4: No space left on device while trying to create journal /tmp/undo-sda2: while force-closing undo file
2020-03-11hscript: Make target directory configurableA. Wilcox8-107/+165
This is the first step towards creating images using Horizon.
2020-02-26hscript: Refactor Keys to be owned by a Script*A. Wilcox14-336/+382
This means that a Key can introspect its Script.
2020-02-26hscript: Add introspection support for Script classA. Wilcox2-0/+98
2020-02-23Update a few TODOsA. Wilcox1-1/+0
2020-02-23hscript: Handle Partition type codesA. Wilcox2-2/+28
2020-02-22hscript: Add HFS+ support to Filesystem keyA. Wilcox2-1/+8
2020-02-11hscript: Turn on network interfaces in Install Env when network is trueA. Wilcox1-1/+13
2020-02-09hscript: Factor subnet -> CIDR conversion to util functionA. Wilcox1-9/+3
* Also ensures that the unused function in util/net (is_url_valid) doesn't break the build of network.cc (and vis versa for user.cc).
2019-12-19hscript: Add 'arch' key implementation and related testsA. Wilcox6-2/+88
2019-12-07hscript: UserPassphrase: Ensure simulated runs don't actually set passwordsA. Wilcox1-0/+1
2019-12-05Actually refactor valid_keymaps into a reusable componentA. Wilcox1-10/+1
2019-11-19hscript: Fix repo key default when firmware support is enabledA. Wilcox1-2/+7
2019-11-08hscript: Implement UserIcon::execute, add testsA. Wilcox2-2/+85
2019-11-07hscript: nevermind, that causes obj sizes to bloatA. Wilcox2-1/+5
2019-11-07hscript: Key dtor doesn't need out-of-line definitionA. Wilcox2-4/+1
2019-11-07hscript: Implement Runner.Execute.UserAccounts, add testsA. Wilcox2-11/+101
2019-11-06hscript: Drastically simplify validation tooA. Wilcox1-36/+17
2019-11-06hscript: Drastically simplify script executionA. Wilcox1-67/+25
2019-11-06hscript: Use assertions since this should never ever happenA. Wilcox1-4/+3
2019-11-06hscript: Disable coverage test for default case handler in store_keyA. Wilcox1-1/+1
2019-11-06tests: Add more nameserver behavioural testsA. Wilcox1-3/+12
2019-11-06hscript: Implement Runner.Execute.signingkey.FirmwareA. Wilcox1-1/+24
2019-11-06hscript: Implement Runner.Execute.netaddress.OpenRCA. Wilcox1-0/+36
2019-11-04hscript: It's LCOV_EXCL_STOP, not LCOV_EXCL_ENDA. Wilcox1-1/+1
2019-11-04hscript: Mark code correctly for LCOVA. Wilcox4-15/+21
2019-11-04hscript: Language::execute: space between string and valueA. Wilcox1-1/+1
2019-11-04hscript: Conditionalise more code under HAS_INSTALL_ENVA. Wilcox2-5/+22
2019-11-04hscript: Implement Keymap::executeA. Wilcox2-2/+39