Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Installing (or failed -t command) // Error in maxed Overlay FS #32

Closed
aemonge opened this issue Mar 16, 2023 · 5 comments
Closed

Comments

@aemonge
Copy link

aemonge commented Mar 16, 2023

Following the instruccions, but I'm still not getting it installed:

❯ sudo rwfus -iI
Creating overlays for /usr /etc/pacman.d /var/lib/pacman /var/cache/pacman:
1. Creating directories...
2. Updating disk image...
3. Generating service...
4. Storing configuration...
5. Copying service to /etc/systemd/system
6. Enabling service unit
7. Setting up pacman...
Done!

● rwfusd.service - Rwfus: Carry Pacman across SteamOS updates!
     Loaded: loaded (/etc/systemd/system/rwfusd.service; enabled; preset: disabled)
     Active: active (exited) since Thu 2023-03-16 08:43:16 CET; 6s ago
    Process: 20611 ExecStart=/opt/rwfus/service/rwfusd.sh --start (code=exited, status=0/SUCCESS)
   Main PID: 20611 (code=exited, status=0/SUCCESS)
        CPU: 165ms
Stopping Rwfus
Adding Rwfus to /home/.steamos/offload/usr/local/bin
Unmasking and enabling usr-local.mount
Restarting Rwfus
Done!

Log saved to /var/log/rwfus.log
❯ sudo rwfus -t
Enabling test mode.
cf_Base_Directory: ./test/opt/rwfus
cf_Service_Directory: ./test/opt/rwfus/service
cf_Mount_Directory: ./test/opt/rwfus/mount
cf_Upper_Directory: ./test/opt/rwfus/mount/upper
cf_Work_Directory: ./test/opt/rwfus/mount/work
cf_Install_Directory: ./test/home/.steamos/offload/usr/local/bin
cf_Systemd_Directory: ./test/etc/systemd/system
cf_Disk_Image_Path: ./test/opt/rwfus/rwfus.btrfs
cf_Config_File: ./test/etc/opt/rwfus.conf
cf_Logfile: ./test/var/log/rwfus.log
Rwfus is not installed. Install it with `rwfus --install`

Cat the log:

Creating overlays for /usr /etc/pacman.d /var/lib/pacman /var/cache/pacman:
Removed "/etc/systemd/system/multi-user.target.wants/rwfusd.service".
1. Creating directories...
2. Updating disk image...
mount: /dev/loop0 mounted on /opt/rwfus/mount.
Resize device id 1 (/dev/loop0) from 8.00GiB to max
umount: /home/.steamos/offload/opt/rwfus/mount (/dev/loop0) unmounted
3. Generating service...
Generating service rwfusd
  script /opt/rwfus/service/rwfusd.sh
  unit   /opt/rwfus/service/rwfusd.service
4. Storing configuration...
Storing config file to /etc/opt/rwfus.conf...
-rw-r--r-- 1 root root 1144 Mar 16 08:43 /etc/opt/rwfus.conf
5. Copying service to /etc/systemd/system
'/opt/rwfus/service/rwfusd.service' -> '/etc/systemd/system/rwfusd.service'
6. Enabling service unit
Created symlink /etc/systemd/system/multi-user.target.wants/rwfusd.service → /etc/systemd/system/rwfusd.servic
e.
7. Setting up pacman...
==> Appending keys from archlinux.gpg...
==> Appending keys from holo.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2023-04-21
:: Synchronizing package databases...
 jupiter-rel downloading...
 holo-rel downloading...
 core-rel downloading...
 extra-rel downloading...
 community-rel downloading...
 multilib-rel downloading...
Done!

Stopping Rwfus
Removed "/etc/systemd/system/multi-user.target.wants/rwfusd.service".
Adding Rwfus to /home/.steamos/offload/usr/local/bin
'/home/deck/bin/rwfus_include/config.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/config.sh'
'/home/deck/bin/rwfus_include/disk.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/disk.sh'
'/home/deck/bin/rwfus_include/info.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/info.sh'
'/home/deck/bin/rwfus_include/manage-install.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/manage
-install.sh'
'/home/deck/bin/rwfus_include/service-main.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/service-
main.sh'
'/home/deck/bin/rwfus_include/service.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/service.sh'
'/home/deck/bin/rwfus_include/testlog.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/testlog.sh'
removed '/home/.steamos/offload/usr/local/bin/rwfus'
'/home/deck/bin/rwfus' -> '/home/.steamos/offload/usr/local/bin/rwfus'
Unmasking and enabling usr-local.mount
Restarting Rwfus
Created symlink /etc/systemd/system/multi-user.target.wants/rwfusd.service → /etc/systemd/system/rwfusd.servic
e.
Done!

Check for steamos-readonly status:

❯ sudo steamos-readonly status
enabled

Try to install a package:

❯ sudo pacman -S base-devel --noconfirm
:: There are 26 members in group base-devel:
:: Repository holo-rel
   1) archlinux-keyring
:: Repository core-rel
   2) autoconf  3) automake  4) binutils  5) bison  6) debugedit  7) fakeroot  8) file  9) findutils
   10) flex  11) gawk  12) gcc  13) gettext  14) grep  15) groff  16) gzip  17) libtool  18) m4  19) make
   20) pacman  21) patch  22) pkgconf  23) sed  24) sudo  25) texinfo  26) which

Enter a selection (default=all): all
...............
error: Partition /etc too full: 11772 blocks needed, 0 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

Error, since overlay has been maxed:

❯ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.2G     0  7.2G   0% /dev
tmpfs           7.3G  512K  7.3G   1% /dev/shm
tmpfs           2.9G   11M  2.9G   1% /run
/dev/nvme0n1p4  5.0G  3.7G  1.1G  78% /
/dev/nvme0n1p6  230M  214M     0 100% /var
overlay         230M  214M     0 100% /etc
/dev/nvme0n1p8  464G   29G  436G   7% /home
tmpfs           7.3G  120K  7.3G   1% /tmp
tmpfs           1.5G  192K  1.5G   1% /run/user/1000
pCloud.fs       2.0T   38G  2.0T   2% /home/deck/pCloudDrive
/dev/loop0      8.0G  271M  7.8G   4% /opt/rwfus/mount
overlay         8.0G  271M  7.8G   4% /usr
overlay         8.0G  271M  7.8G   4% /etc/pacman.d
overlay         8.0G  271M  7.8G   4% /var/lib/pacman
overlay         8.0G  271M  7.8G   4% /var/cache/pacman
@ValShaped
Copy link
Owner

ValShaped commented Mar 16, 2023

The overlay on /etc/ is managed by SteamOS Offload (package steamos-customizations), not by Rwfus. You can only have one overlay mounted per directory, and they've already taken it.

Disabling their overlay would wreak havoc on anything that's currently running.

Your /var/ partition is completely full. You might want to track down what's eating so much space with du -h /{var,etc}/*

@aemonge
Copy link
Author

aemonge commented Mar 16, 2023

Is that why sudo rwfus -t returns:

Rwfus is not installed. Install it with `rwfus --install`

For what I'm undesrtanding from you, the overlay for /etc it isn't related, right?

I've tried cleaning out the /etc and /var directories, but they filled up by regular txt files. Though I think this part (the overlay) isn't related to the install

@ValShaped
Copy link
Owner

Rwfus -t runs the Rwfus configurator in test mode, which is pretty much a dry-run mode.

The /etc/ overlay isn't Rwfus, yes. It's handled by SteamOS and there's nothing Rwfus can do about it, because Rwfus relies on /etc/ to install itself.

What text files are you referring to?

@aemonge
Copy link
Author

aemonge commented Mar 23, 2023

Ohh, then it is a miss understanding from my part. I though rwfus -t would check if the installation is correct.

I've re-installed Steam OS and the first thing I've done is running rwfus and have avoided steamos-readonly disable entirely, and now it's working as expected with a right size for the overlay too :)

I think, people should be warned not to steamos-readonly disable if they'll be working with rwfus :)

@aemonge aemonge closed this as completed Mar 23, 2023
@ValShaped
Copy link
Owner

There are situations where rwfus can be viable as an alternative to steamos-readonly disable (as that's why I wrote rwfus in the first place) and others where steamos-devmode enable (which implies steamos-readonly disable) is critically necessary to not end up with an unbootable system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants