Skip to content

Instantly share code, notes, and snippets.

@class101
Created February 28, 2023 21:15
Show Gist options
  • Save class101/8d66f8fbe3eddd1f673951f5b041949e to your computer and use it in GitHub Desktop.
Save class101/8d66f8fbe3eddd1f673951f5b041949e to your computer and use it in GitHub Desktop.
/etc/fstab for a chroot in a read-only Steam Deck
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# SteamOS partitions
#/dev/disk/by-partsets/self/rootfs / ext4 defaults 0 1
#/dev/disk/by-partsets/self/var /var ext4 defaults 0 2
/dev/disk/by-partsets/self/efi /efi vfat defaults,nofail,umask=0077,x-systemd.automount,x-systemd.idle-timeout=1min 0 2
/dev/disk/by-partsets/shared/esp /esp vfat defaults,nofail,umask=0077,x-systemd.automount,x-systemd.idle-timeout=1min 0 2
/dev/disk/by-partsets/shared/home /home ext4 defaults,nofail,x-systemd.growfs 0 2
## Mounts of the /usr/bin/arch-chroot script
proc /home/deck/.chroot/proc proc nosuid,noexec,nodev,nofail 0 3
sys /home/deck/.chroot/sys sysfs nosuid,noexec,nodev,ro,nofail 0 3
udev /home/deck/.chroot/dev devtmpfs mode=0755,nosuid,nofail 0 3
devpts /home/deck/.chroot/dev/pts devpts mode=0620,gid=5,nosuid,noexec,nofail 0 3
#shm /home/deck/.chroot/dev/shm tmpfs mode=1777,nosuid,nodev,nofail 0 3
/run /home/deck/.chroot/run none bind,nofail 0 3
#tmp /home/deck/.chroot/tmp tmpfs mode=1777,strictatime,nodev,nosuid 0 3
efivarfs /home/deck/.chroot/sys/firmware/efi/efivars efivarfs nosuid,noexec,nodev,nofail 0 3
# Redirects the chroot home to the SteamOS home
/home /home/deck/.chroot/home none bind,nofail 0 4
# Allows the chroot to acces SteamOS with /steamos
/ /home/deck/.chroot/steamos none bind,nofail 0 5
# [DEPRECATED: use home mount] /home /home/deck/.chroot/steamos/home none bind 0 5
# Audio
/var/lib/dbus /home/deck/.chroot/var/lib/dbus none bind,nofail 0 5
/dev/shm /home/deck/.chroot/dev/shm none bind,nofail 0 5
/tmp /home/deck/.chroot/tmp none bind,nofail 0 5
# Allows pacman in chroot to work correctly
/home/deck/.chroot /home/deck/.chroot none bind,nofail 0 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment