summaryrefslogtreecommitdiff
path: root/hscript
AgeCommit message (Collapse)AuthorFilesLines
2020-08-29hscript: Allow multiple svcenables to not breakA. Wilcox1-1/+1
2020-08-22Improve test coverage of metadata keysA. Wilcox1-17/+25
2020-08-21hscript: Parted uses 'mac' for APM labelsA. Wilcox1-1/+1
2020-07-22Add initial MIPS port, sans automatic partitionerA. Wilcox1-0/+16
Help with the automatic partitioner by parties interested in the MIPS ports of Adélie (and/or Alpine and/or postmarketOS) would be very desirable. I'm only currently aware myself of how to partition SGI MIPS64 machines. My gut tells me we probably need the `subarch` system like for PPC64, but I am not sure how non-SGI MIPS64 machines need to be partitioned.
2020-07-10hscript: Use curr_name; work around Alpine bugA. Wilcox1-5/+10
On some Alpine systems, '/dev/stdin' cannot be canonicalised. We work around this by hardcoding "<stdin>" as the internal name for scripts read from stdin, similar to Python. This change also ensures messages generated from the parser itself use curr_name (the canonicalised name) instead of the name passed to the Script object.
2020-07-06hscript: Use target efivarfs path for r/w mountA. Wilcox1-2/+4
2020-07-04hscript: Implement execution of PPPoE for ENI systemsA. Wilcox1-2/+67
2020-07-04hscript: Implement execution of PPPoE for netifrc systemsA. Wilcox1-16/+63
2020-07-04hscipt: Implement parse and validation of 'pppoe' keyA. Wilcox6-5/+167
2020-06-30hscript: Ensure operstate file exists before readingA. Wilcox1-4/+9
2020-06-24Fix network state issue on live installs, and firmware installA. Wilcox2-2/+6
2020-06-23hscript: Implement runlevel support in svcenable keyA. Wilcox3-11/+32
2020-06-23hscript: Don't ensure device existence during image creationA. Wilcox1-3/+3
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.