From 4f2e96fd345da16d01dd6f4d6d9d0bca0d0aec78 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Jan 2021 10:25:32 +0200 Subject: Add ability to build custom/patched packages (untested) --- bootstrap | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/bootstrap b/bootstrap index dc00947..a691245 100755 --- a/bootstrap +++ b/bootstrap @@ -4,12 +4,14 @@ # # Assumptions/expectations: # -# - host debootstrap/debian-archive-keyring matching release +# - Host debootstrap/debian-archive-keyring matching release. # # - /btrfs/ is a btrfs directory where the current user can create -# snapshots +# snapshots. # -# - sudo is passwordless (used to run debootstrap, systemd-nspawn, etc) +# - sudo is passwordless (used to run debootstrap, systemd-nspawn, etc). +# +# - This script is executed from the buildos/ source directory. # # Options: # @@ -19,7 +21,7 @@ # # 1 - bootstrap phase 1 # 2 - bootstrap phase 2 -# 3 - kernel build +# 3 - kernel build (and package patching, if necessary) # 4 - setup # 5 - create footfs # 6 - create kernel image and initrd @@ -374,17 +376,47 @@ EOF subvol_delete "$root-3-kernel" subvol_snapshot "$root" "$root-3-kernel" + # Copy patches. + # + #sudo cp ./patches/tftp-hpa-partial-upload.patch "$root-3-kernel/bootstrap/" + write <