probonopd / aarch64-squashfs-builder

Trying to build squashfs images for aarch64 that can be booted on Amlogic devices
MIT License
1 stars 0 forks source link

"Oh No! Something has gone wrong." dialog #4

Open probonopd opened 4 years ago

probonopd commented 4 years ago

Boot, press Ctrl-F3 to go to a terminal, log in as user "ubuntu", then press Ctrl-F1 after some time.

"Oh No! Something has gone wrong." fullscreen GUI dialog appears. Why?

probonopd commented 4 years ago

Same with lubuntu-desktop instead of xubuntu-desktop. Xorg.1.log has

(II) systemd-logind: got pause for ...
(II) systemd-logind: got pause for ...
(II) systemd-logind: got resume for ...

MANY times. I think this has to do with it.

On the @150balbes system where it works, I get:

(II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
probonopd commented 4 years ago

Maybe we need

/etc/armbian/lightdm/lightdm.conf.d/11-armbian.conf
/etc/X11/xorg.conf.d/01-armbian-defaults.conf
/etc/X11/default-display-manager # it says "/usr/sbin/lightdm" on the working @150balbes system but it is not in any package - what has put it there?

and how can we disable systemd-logind so that it says

systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration

as it does on the @150balbes system?

probonopd commented 4 years ago

Maybe some additional magic is going on in armbian and/or @150balbes debian preinst/postinst scripts? These seem to be hidden away in some patch files, e.g., https://github.com/150balbes/Build-Armbian/blob/master/patch/kernel/arm-64-current/packages-current.patch, which makes it really hard to understand what is going on there.

probonopd commented 4 years ago

Same result when I use filesystem.squashfs from the official focal-desktop-arm64.iso from Canonical: Screen goes black when Xorg is launched. After a while, the "Oh no! Something has gone wrong." screen appears. This shows that Xorg itself must be running, otherwise it couldn't show that screen.

What the heck is going on?

probonopd commented 4 years ago

Maybe we need the xubuntu-live-settings package which has the file 48xubuntu_maybe_ubiquity which does:

#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
probonopd commented 4 years ago

The following brings me to a "almost-Xubuntu-looking" desktop:

It is not 100% the same as a Xubuntu Live ISO, however. The background is wrong, the menu is wrong, fonts are wrong.