mkimage-profiles/features.in/oem/rootfs/image-scripts.d/99-oem-setup
Anton Midyukov 33523fb532 oem: Create empty /var/lib/install3/lists/.base
Empty lists/.base needed for alterator-pkg to calculate the space
required for installation when selecting groups.
See-also: https://lists.altlinux.org/pipermail/devel-distro/2020-December/002239.html
2020-12-23 01:48:59 +07:00

32 lines
798 B
Bash
Executable File

#!/bin/sh
# this breaks the default configuration on intent
# so that alterator-setup can run predictably
TARGET=/lib/systemd/system/$GLOBAL_OEM_TARGET.target
[ ! -s "$TARGET" ] ||
ln -s "$TARGET" /etc/systemd/system/default.target
echo "LANG=en_US.utf-8" >> /etc/sysconfig/i18n
# Disable cleanup alterator-setup
[ ! "$GLOBAL_OEM_NO_CLEANUP" = yes ] ||
sed -i 's/^REMOVE_SELF=.*/REMOVE_SELF=0/' /etc/alterator-setup/config
# Set alterator-setup steps
if [ -n "$GLOBAL_OEM_STEPS" ]; then
rm -f /etc/alterator-setup/steps
for OEM_STEP in $GLOBAL_OEM_STEPS; do
echo $OEM_STEP >> /etc/alterator-setup/steps
done
fi
if [ -n "$GLOBAL_OEM_INSTALL" ]; then
mkdir -p /var/lib/install3
tar -xf /.install3.tar -C /var/lib/install3/
rm /.install3.tar
touch /var/lib/install3/lists/.base
fi
: