简体   繁体   中英

Starting Gnome 3 in a read-only environment

First off, my intention is to create a portable, bootable USB drive containing a GNU/Linux distribution. Specifically, I want to use Arch Linux with a squashfs read-only root filesystem.

The squashfs image is based on a snapshot of a working VM. The base system with it's services like ssh work out of the box as expected. But when trying to launch gnome via systemd (systemctl start gdm), all I see is a black screen (supposedly the X-Server started but gdm fails to load). I already tried to figure out whats happening, but failed to identify the exact problem.

  • Home directories are writeable
  • /tmp is writeable
  • /var/log is writeable
  • /var/run & /run are writeable anyway

/var/log/gdm gets created but stays empty. Which modules may require write access to any other files? Is there any documentation? What would make sense to strace or similar?

My desire is to know the root of the problem and fix it, instead of using workarounds like unionfs. Thanks for any help or hints!

Although it's not relevant, for those who might wonder why I want to do this, here are some points to consider:

  • Stability - as you cannot modify system files, you cannot mess up the system (unless you write bogus directly to the drive of course)
  • Storage - as files are compressed, more data fits on the drive
  • Performance - as I/O on most USB drives is slow, compression gives you higher I/O speed
  • Portability - no special treatment for read-only storage, you might copy it on a CD or any other read-only technology and it will still work the same way as it would on a writeable disk

Update

I figured out that the problem was actually at /var/lib/gdm. GDM tried to access files in there an (silently) failed doing so giving me a black screen.

I figured out that the problem was actually at /var/lib/gdm. GDM tried to access files in there an (silently) failed doing so giving me a black screen.

journalctl was the debugging command i was missing in the first place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM