Fix chroot_scripts_path

This commit is contained in:
Ward from fusion-voyager-3 2024-08-01 16:56:33 +03:00
parent 9ba4671f48
commit e7873de2d6
6 changed files with 19 additions and 19 deletions

2
.github/push-iso vendored
View File

@ -1 +1 @@
16
17

View File

@ -44,8 +44,8 @@ apt-get install --yes --option Dpkg::Options::="--force-confnew" --no-install-re
nano
# Run chroot steps
/etc/chroot_scripts/1-baseos.sh
/etc/chroot_scripts/2-install-live-lists.sh
/etc/chroot_scripts/3-download-pool.sh
/etc/chroot_scripts/4-uninstall-rem-lists.sh
/etc/chroot_scripts/5-run-hooks.sh
/chroot_scripts/1-baseos.sh
/chroot_scripts/2-install-live-lists.sh
/chroot_scripts/3-download-pool.sh
/chroot_scripts/4-uninstall-rem-lists.sh
/chroot_scripts/5-run-hooks.sh

View File

@ -4,16 +4,16 @@ set -e
export DEBIAN_FRONTEND="noninteractive"
touch /etc/chroot_scripts/live_list
touch /chroot_scripts/live_list
for live_list in /etc/chroot_scripts/live-lists/*.list
for live_list in /chroot_scripts/live-lists/*.list
do
for pkg in $(cat $live_list)
do
echo $pkg >> /etc/chroot_scripts/live_list
echo $pkg >> /chroot_scripts/live_list
done
done
apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /etc/chroot_scripts/live_list | tr "\n" " ")
apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/live_list | tr "\n" " ")

View File

@ -4,17 +4,17 @@ set -e
export DEBIAN_FRONTEND="noninteractive"
touch /etc/chroot_scripts/pool_list
touch /chroot_scripts/pool_list
for pool_list in /etc/chroot_scripts/pool-lists/*.list
for pool_list in /chroot_scripts/pool-lists/*.list
do
for pkg in $(cat $pool_list)
do
echo $pkg >> /etc/chroot_scripts/pool_list
echo $pkg >> /chroot_scripts/pool_list
done
done
mkdir -p /cdrom/pool/main/
pushd /cdrom/pool/main/
apt-get download --yes $(cat /etc/chroot_scripts/pool_list | tr "\n" " ")
apt-get download --yes $(cat /chroot_scripts/pool_list | tr "\n" " ")
popd

View File

@ -4,16 +4,16 @@ set -e
export DEBIAN_FRONTEND="noninteractive"
touch /etc/chroot_scripts/rem_list
touch /chroot_scripts/rem_list
for rem_list in /etc/chroot_scripts/rem-lists/*.list
for rem_list in /chroot_scripts/rem-lists/*.list
do
for pkg in $(cat $rem_list)
do
echo $pkg >> /etc/chroot_scripts/rem_list
echo $pkg >> /chroot_scripts/rem_list
done
done
apt-get purge --yes --option Dpkg::Options::="--force-confnew" $(cat /etc/chroot_scripts/rem_list | tr "\n" " ") || true
apt-get purge --yes --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/rem_list | tr "\n" " ") || true

View File

@ -6,7 +6,7 @@ export DEBIAN_FRONTEND="noninteractive"
export ORIGINAL_WORKINGDIR=$(pwd)
for hook in /etc/chroot_scripts/hooks/*
for hook in /chroot_scripts/hooks/*
do
$hook
cd $ORIGINAL_WORKINGDIR