ValveSoftware / SteamOS

SteamOS community tracker
1.48k stars 69 forks source link

Recovery image: Chroot doesn't work #1428

Open arschfidel0815 opened 2 months ago

arschfidel0815 commented 2 months ago

Your system information

I booted into the recovery system and opened the ```````_Terminal with repair tools_ shortcut on the desktop. In the Konsole window that's opened by the shortcut I typedsudo ~/tools/repair_device.sh chroot` Then I got this error with the chroot failing:

:: Dropping into a chroot on the A partition set.
:: You can make any needed changes here, and exit when done.
+ 'steamos-chroot' '--disk' '/dev/nvme0n1' '--partset' 'A'
/usr/bin/steamos-chroot: line 206: /run/lock//dev/nvme0n1-A.flock: No such file or directory
umount: /tmp/tmp.ODoKCOiW90/etc: not mounted.
umount: /tmp/tmp.ODoKCOiW90/var: not mounted.
umount: /tmp/tmp.ODoKCOiW90/esp: not mounted.
umount: /tmp/tmp.ODoKCOiW90/efi: not mounted.
umount: /tmp/tmp.ODoKCOiW90/tmp: not mounted.
umount: /tmp/tmp.ODoKCOiW90/sys/firmware/efi/efivars: no mount point specified.
umount: /tmp/tmp.ODoKCOiW90/sys: not mounted
umount: /tmp/tmp.ODoKCOiW90/run: not mounted.
umount: /tmp/tmp.ODoKCOiW90/proc: not mounted
umount: /tmp/tmp.ODoKCOiW90/dev: not mounted.

The expected behaviour would be for the chroot to work successfully.

INNKCake commented 2 months ago

Same problem here, SteamOS version 3.4.1, recovery 3.5.7.

dezral commented 1 month ago

exactly same message i get. looks like the os have changed since 3.5.7..

SteamOS version: 3.5.17 (installed on the Deck); 3.5.7 (recovery image on USB stick) i think valve needs to update the recovery mage to support the newer steamos

aotd1 commented 1 month ago

Workaround to mount partition /var:

sudo mount /dev/disk/by-partlabel/var-B /mnt

If you need another - just mount it name. And if you came here to reset Steam Deck password - use this second command to remove shadow file:

sudo unlink /mnt/lib/overlays/etc/upper/shadow
bertogg commented 1 month ago

Hi, this is a bug in the current version of steamos-chroot and it will be fixed in the new one. You can make it work if you use a relative path for the disk:

$ cd /dev
$ sudo steamos-chroot --disk nvme0n1 --partset A

If you're still having problems with that you may need to use --no-overlay as well.