Deprecate customize_airootfs.sh

Show a deprecation notice if airootfs/root/customize_airootfs.sh is found.
This commit is contained in:
nl6720 2020-07-17 12:10:35 +03:00
parent df93289b73
commit 78fe656042
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
2 changed files with 11 additions and 7 deletions

View File

@ -2,6 +2,8 @@
set -e -u
echo 'Warning: customize_airootfs.sh is deprecated! Support for it will be removed in a future archiso version.'
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen

View File

@ -117,6 +117,7 @@ make_setup_mkinitcpio() {
# Customize installation (airootfs)
make_customize_airootfs() {
if [[ -e "${work_dir}/x86_64/airootfs/root/customize_airootfs.sh" ]]; then
if [ -n "${verbose}" ]; then
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" \
-r '/root/customize_airootfs.sh' run
@ -125,6 +126,7 @@ make_customize_airootfs() {
-r '/root/customize_airootfs.sh' run
fi
rm "${work_dir}/x86_64/airootfs/root/customize_airootfs.sh"
fi
}
# Prepare kernel/initramfs ${install_dir}/boot/