Include uncommitted changes in archiso

This commit is contained in:
Manuel Thalmann 2024-07-06 21:51:19 +02:00
parent 1697879c64
commit abb54cfcc2

View file

@ -7,9 +7,16 @@ nixCache="$cacheRoot/nixpkgs";
root="airootfs";
rootHome="$overlayDir/$root/root";
profileDir="/mnt/archiso-valhalla";
projectDir="$rootHome/PortValhalla";
nixDir="$profileDir/$root/nix/var/nix/profiles/per-user/root/channels/nixpkgs";
mkdir -p "$rootHome";
git clone .. "$rootHome/PortValhalla";
git clone .. "$projectDir";
git -C .. diff HEAD | git -C "$projectDir" apply;
git -C .. ls-files --exclude-standard --others | \
while read file; do
cp "../$file" "$projectDir/$file";
done;
if [ ! -d "$nixCache" ]; then
mkdir -p "$nixCache"