/usr/share/initramfs-tools/scripts/casper-bottom/48xubuntu_maybe_ubiquity is in xubuntu-live-settings 18.04.6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh
PREREQ=""
DESCRIPTION="Preparing for maybe-ubiquity mode..."
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /scripts/casper-functions
log_begin_msg "$DESCRIPTION"
#should cover both maybe-ubiquity and only-ubiquity and automatic-ubiquity modes
if grep "ubiquity" /proc/cmdline >/dev/null; then
mkdir -p /root/home/$USERNAME/.config
cp -R /root/etc/xdg/xdg-xubuntu/xfce4 /root/home/$USERNAME/.config
chroot /root chown -R $USERNAME:$USERNAME /home/$USERNAME/.config
fi
log_end_msg
|