Fix lightdm issue for ubuntu

This commit is contained in:
baiywt 2024-04-10 17:08:58 +08:00
parent bf37ded22f
commit 12d48c4b5b
2 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,7 @@ case $1 in
prepare_board &
# add usb quirks
add_usb_storage_quirks &
# add_usb_storage_quirks &
# branch naming workaround
branch_naming_workaround &

View File

@ -746,6 +746,7 @@ install_distribution_specific()
# by using default lz4 initrd compression leads to corruption, go back to proven method
sed -i "s/^COMPRESS=.*/COMPRESS=gzip/" "${SDCARD}"/etc/initramfs-tools/initramfs.conf
echo -e "\n[Install]\nWantedBy=multi-user.target" >> "${SDCARD}"/lib/systemd/system/lightdm.service
# cleanup motd services and related files
chroot "${SDCARD}" /bin/bash -c "systemctl disable motd-news.service >/dev/null 2>&1"