summaryrefslogtreecommitdiff
path: root/hscript
AgeCommit message (Collapse)AuthorFilesLines
2020-06-23Change Runner.Validate.hostname.Begin to allow numeric charactersA. Wilcox1-2/+2
2020-06-23hscript: meta: desperate attempt to fix EFI installsA. Wilcox1-0/+12
2020-06-23hscript: Recursively bind-mount /dev and /sysA. Wilcox1-2/+4
We need this for /dev/shm to be present in the target. We need to bind-mount /sys recursively for efivarfs to be available for GRUB's use in the target. While we're here, unmount /dev and /sys recursively when creating an image.
2020-06-21hscript: Ensure mount directory existsA. Wilcox1-1/+1
2020-06-13hscript: Validate and execute the bootloader key, if providedA. Wilcox2-0/+6
2020-06-13hscript: maybe implement bootloader keyA. Wilcox1-0/+77
2020-06-13hscript: bootloader: build in runtime envA. Wilcox1-2/+6
2020-06-13hscript: Stub unfinished implementation of 'bootloader' keyA. Wilcox4-0/+125
2020-06-06hscript: Update for console-setup -> kbd changeA. Wilcox3-12/+10
2020-05-29hscript: Timezone: Always remove existing localtimeA. Wilcox1-2/+2
Otherwise, if the target doesn't have tzdata installed, an existing /etc/localtime file won't be removed and we can hit an error.
2020-05-29hscript: Hostname: Create /etc if it doesn't existA. Wilcox1-0/+8
Without this, errors are seen generating Alpine images.
2020-05-28hscript: user: Support cross-arch installsA. Wilcox1-11/+9
Using PAM's -R tries to load target system's PAM libraries, which obviously fail if it's not the same CPU arch.
2020-05-26hscript: Close file after downloadA. Wilcox1-0/+2
2020-05-26hscript: Flush downloaded file before returningA. Wilcox1-0/+1
2020-05-26hscript: Make --keys-dir relativeA. Wilcox1-11/+7
2020-05-26hscript: Ensure target mounts aren't hardcoded to /targetA. Wilcox1-9/+13
2020-05-26hscript: Implement (undocumented, untested) 'version' keyA. Wilcox5-13/+63
2020-05-26hscript: Ensure root mounts aren't required for imageA. Wilcox1-1/+1
2020-05-26hscript: Implement (currently undocumented) 'inherit' key and testsA. Wilcox3-11/+44
2020-05-26hscript: Convert 'int line' to a ScriptLocation objectA. Wilcox16-739/+619
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).