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 | 3fc34866ab9092445039f1da3c9f71c60f30f2ee (patch) | |
| tree | beb1babf521f80962095ff93c2f1740a0216b6b2 /build.sh | |
| parent | 94af83c1c8446ef1a564cff8aec5487afa47693e (diff) | |
| download | archangel-3fc34866ab9092445039f1da3c9f71c60f30f2ee.tar.gz archangel-3fc34866ab9092445039f1da3c9f71c60f30f2ee.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 |
