diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-23 16:27:16 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-23 16:27:16 -0600 |
| commit | 70fe414c5f3d57567328e3a7ec8e673dccb7f1a1 (patch) | |
| tree | 92e4d85e6afdb38fc9f77be2771c2b001554879d /build.sh | |
| parent | e0f8d37961d189197bd5b4379532adb5957dea02 (diff) | |
| download | archangel-70fe414c5f3d57567328e3a7ec8e673dccb7f1a1.tar.gz archangel-70fe414c5f3d57567328e3a7ec8e673dccb7f1a1.zip | |
Fix build.sh to include lib/ directory in ISO
- Copy custom/lib/ to /usr/local/bin/lib/ in airootfs
- Add file permissions for lib/*.sh files
- Required for refactored install-archzfs to work
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -369,6 +369,7 @@ EOF # Copy our custom scripts info "Copying custom scripts..." cp "$CUSTOM_DIR/install-archzfs" "$PROFILE_DIR/airootfs/usr/local/bin/" +cp -r "$CUSTOM_DIR/lib" "$PROFILE_DIR/airootfs/usr/local/bin/" cp "$CUSTOM_DIR/install-claude" "$PROFILE_DIR/airootfs/usr/local/bin/" cp "$CUSTOM_DIR/archsetup-zfs" "$PROFILE_DIR/airootfs/usr/local/bin/" @@ -404,6 +405,18 @@ if grep -q "file_permissions=" "$PROFILE_DIR/profiledef.sh"; then /)/ i\ ["/usr/local/bin/zfsrollback"]="0:0:755" }' "$PROFILE_DIR/profiledef.sh" sed -i '/^file_permissions=(/,/)/ { + /)/ i\ ["/usr/local/bin/lib/common.sh"]="0:0:755" + }' "$PROFILE_DIR/profiledef.sh" + sed -i '/^file_permissions=(/,/)/ { + /)/ i\ ["/usr/local/bin/lib/config.sh"]="0:0:755" + }' "$PROFILE_DIR/profiledef.sh" + sed -i '/^file_permissions=(/,/)/ { + /)/ i\ ["/usr/local/bin/lib/disk.sh"]="0:0:755" + }' "$PROFILE_DIR/profiledef.sh" + sed -i '/^file_permissions=(/,/)/ { + /)/ i\ ["/usr/local/bin/lib/zfs.sh"]="0:0:755" + }' "$PROFILE_DIR/profiledef.sh" + sed -i '/^file_permissions=(/,/)/ { /)/ i\ ["/etc/shadow"]="0:0:400" }' "$PROFILE_DIR/profiledef.sh" fi |
