From e530181705f89d2f0d70e6d79ebe642f24465763 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sat, 15 Jul 2023 02:23:49 +0200 Subject: [PATCH] install stage 1, package selections: add a mechanism to download additional files --- install-stage1.sh | 6 ++++++ notes_to_self.txt | 1 - package_selections/desktop/additional_files.lst | 1 + package_selections/desktop/resources/common_packages | 1 + package_selections/nvidia/additional_files.lst | 0 5 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 package_selections/desktop/additional_files.lst create mode 100644 package_selections/desktop/resources/common_packages create mode 100644 package_selections/nvidia/additional_files.lst diff --git a/install-stage1.sh b/install-stage1.sh index 0e27ca9..6a32583 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -424,6 +424,12 @@ for I in ${!SECTIONS[@]}; do for J in ${!OPTIONS[@]}; do get_stage2_file "package_selections/${SECTIONS[$I]}/${OPTIONS[$J]}" done + + get_stage2_file "package_selections/${SECTIONS[$I]}/additional_files.lst" + readarray -t FILES < "$STAGE2_DIR/package_selections/${SECTIONS[$I]}/additional_files.lst" + for J in ${!FILES[@]}; do + get_stage2_file "package_selections/${SECTIONS[$I]}/${FILES[$J]}" + done done mv /mnt/target/etc/sv/agetty-tty1/conf /mnt/target/etc/sv/agetty-tty1/conf.bak >> $LOGFILE 2>&1 diff --git a/notes_to_self.txt b/notes_to_self.txt index d72d3eb..37d4ddf 100644 --- a/notes_to_self.txt +++ b/notes_to_self.txt @@ -24,7 +24,6 @@ add online check to all the selections that need internet sort out /etc/resolv.conf for the chroot set keyboard layout for initramfs need some sort of notification handler? -add a way to provide additional files to package selections replace package selections with these options: nvidia keep the old selections diff --git a/package_selections/desktop/additional_files.lst b/package_selections/desktop/additional_files.lst new file mode 100644 index 0000000..14164d6 --- /dev/null +++ b/package_selections/desktop/additional_files.lst @@ -0,0 +1 @@ +resources/common_packages diff --git a/package_selections/desktop/resources/common_packages b/package_selections/desktop/resources/common_packages new file mode 100644 index 0000000..e800aad --- /dev/null +++ b/package_selections/desktop/resources/common_packages @@ -0,0 +1 @@ +setxkbmap xauth xorg-video-drivers mesa mesa-dri xorg-server elogind xorg-input-drivers xrandr acpilight xhost xinit xrdb xinput xgamma xset iceauth sessreg transset xcmsdb xkbutils xmodmap dejavu-fonts-ttf elogind xdg-utils dbus-elogind dbus-elogind-libs dbus-elogind-x11 pipewire diff --git a/package_selections/nvidia/additional_files.lst b/package_selections/nvidia/additional_files.lst new file mode 100644 index 0000000..e69de29