Introduce packaging support

Utilising previously introduced DESTDIR support, everything is installed
to aformentioned DESTDIR.

Prior to the building of XBPS, we use gzip compressed tarballs as
packages. This requires a lot of strange hacks especially for old tar +
gzip (timestamps, etc causing reproducibility problems). Then we use
XBPS once built.
This commit is contained in:
fosslinux 2022-01-14 22:02:08 +11:00
parent f4d43e2113
commit 968d2ea7d1
4 changed files with 127 additions and 8 deletions

View file

@ -71,6 +71,7 @@ cp -r /dev /sysc/
find /usr -mindepth 1 -maxdepth 1 -type d -not -name src -exec cp -r {} /sysc/{} \;
# Except for bootstrap.cfg
cp /usr/src/bootstrap.cfg /sysc/usr/src/bootstrap.cfg
cp -r /usr/src/repo /sysc/usr/src/repo
sync
# switch_root into sysc 1. for simplicity 2. to avoid kexecing again