parent
76f9f34177
commit
38157b3748
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
. /root/config/chroot
|
||||||
|
|
||||||
|
# Specific ubuntu-image chroot configuration goes here.
|
||||||
|
if [ "$IMAGEFORMAT" == "none"]; then
|
||||||
|
if [ "$SUBPROJECT" == "desktop-preinstalled" ]; then
|
||||||
|
# Create files/dirs Ubiquity requires
|
||||||
|
mkdir -p /var/log/installer
|
||||||
|
touch /var/log/installer/debug
|
||||||
|
touch /var/log/syslog
|
||||||
|
chown syslog:adm /var/log/syslog
|
||||||
|
|
||||||
|
sed -i "s|#WaylandEnable=false|#WaylandEnable=false\nInitialSetupEnable=false|" "/etc/gdm3/custom.conf"
|
||||||
|
|
||||||
|
# Create the oem user account
|
||||||
|
/usr/sbin/useradd -d /home/oem -m -N -u 29999 oem
|
||||||
|
|
||||||
|
/usr/sbin/oem-config-prepare --quiet
|
||||||
|
touch "/var/lib/oem-config/run"
|
||||||
|
|
||||||
|
# Make the writable partition grow
|
||||||
|
echo "LABEL=writable / ext4 defaults,x-systemd.growfs 0 0" >>/etc/fstab
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in new issue