diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-24 12:23:45 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-24 12:23:45 -0600 |
| commit | 9a9232aeed72e2d319418d06c790620db0db4ad2 (patch) | |
| tree | c5c7cc3fc4fa1da44d06a0d0dfcea6add9926918 /build.sh | |
| parent | c55ce46084635c188abb4516ba6ee6eee38dd11d (diff) | |
| download | archangel-9a9232aeed72e2d319418d06c790620db0db4ad2.tar.gz archangel-9a9232aeed72e2d319418d06c790620db0db4ad2.zip | |
Fix LUKS btrfs installation and reduce ISO size
- Fix GRUB cryptodisk: configure_grub() heredoc was overwriting LUKS
settings added by configure_luks_grub(). Moved LUKS GRUB config
(GRUB_ENABLE_CRYPTODISK=y, cryptdevice cmdline) into configure_grub()
after the heredoc writes the base config.
- Fix ISO bloat: archsetup copy was including vm-images (17GB).
Changed from cp -r to rsync with exclusions for vm-images,
test-results, .qcow2, and .iso files. ISO now 2.0GB.
- btrfs-luks VM test now passes.
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -424,12 +424,17 @@ if grep -q "file_permissions=" "$PROFILE_DIR/profiledef.sh"; then }' "$PROFILE_DIR/profiledef.sh" fi -# Copy archsetup into airootfs +# Copy archsetup into airootfs (exclude large/unnecessary directories) if [[ -d /home/cjennings/code/archsetup ]]; then info "Copying archsetup into ISO..." - cp -r /home/cjennings/code/archsetup "$PROFILE_DIR/airootfs/code/" - rm -rf "$PROFILE_DIR/airootfs/code/archsetup/.git" - rm -rf "$PROFILE_DIR/airootfs/code/archsetup/.claude" + mkdir -p "$PROFILE_DIR/airootfs/code" + rsync -a --exclude='.git' \ + --exclude='.claude' \ + --exclude='vm-images' \ + --exclude='test-results' \ + --exclude='*.qcow2' \ + --exclude='*.iso' \ + /home/cjennings/code/archsetup "$PROFILE_DIR/airootfs/code/" fi # Pre-populate tealdeer (tldr) cache for offline use |
