Use Armbian configuration and don't prompt

https://github.com/armbian/build/issues/1075
This commit is contained in:
Igor Pecovnik 2018-08-10 14:10:22 +02:00
parent 86134550a4
commit 6c366ca122

View File

@ -116,7 +116,7 @@ desktop_postinstall ()
{
# stage: install display manager
display_alert "Installing" "display manager: $DISPLAY_MANAGER" "info"
chroot $SDCARD /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $PACKAGE_LIST_DISPLAY_MANAGER" >> $DEST/debug/install.log 2>&1
chroot $SDCARD /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::=\"--force-confold\" -y -qq install $PACKAGE_LIST_DISPLAY_MANAGER" >> $DEST/debug/install.log 2>&1
[[ -f $SDCARD/etc/default/nodm ]] && sed "s/NODM_ENABLED=\(.*\)/NODM_ENABLED=false/g" -i $SDCARD/etc/default/nodm
[[ -d $SDCARD/etc/lightdm ]] && chroot $SDCARD /bin/bash -c "systemctl --no-reload disable lightdm.service >/dev/null 2>&1"
@ -129,4 +129,4 @@ desktop_postinstall ()
echo "disp_mem_reserves=on" >> $SDCARD/boot/armbianEnv.txt
echo "extraargs=cma=96M" >> $SDCARD/boot/armbianEnv.txt
fi
}
}