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

rwfus --install-bin fails in 0.5.0.b1 #48

Closed
gbdrbob opened this issue Jun 16, 2024 · 2 comments · Fixed by #50
Closed

rwfus --install-bin fails in 0.5.0.b1 #48

gbdrbob opened this issue Jun 16, 2024 · 2 comments · Fixed by #50

Comments

@gbdrbob
Copy link

gbdrbob commented Jun 16, 2024

As per subject, here is the relevant part of my rwfus.log:

Rwfus v0.5.0.b1 
Carry Pacman across SteamOS updates!

Rwfus directory: /opt/rwfus
Unit Storage directory: /opt/rwfus/service
Systemd directory: /etc/systemd/system

./rwfus -I
Loading config file /etc/opt/rwfus.conf
> Version: "0.5.0.b1"
> Base_Directory: "/opt/rwfus"
> Directories: "/usr /etc/pacman.d /var/cache/pacman"
> Stop_Units: "var-cache-pacman.mount"
> Mask_Units: "pacman-cleanup.service"
> Restart_Units: "usr-local.mount polkit.service"
> Mount_Options: "loop,compress"
> Systemd_Directory: "/etc/systemd/system"
Stopping Rwfus
Removed "/etc/systemd/system/multi-user.target.wants/rwfusd.service".
# It's okay if unmounting fails here #
umount: /usr: not mounted.
umount: /etc/pacman.d: not mounted.
umount: /var/cache/pacman: not mounted.
umount: /opt/rwfus/rwfus.btrfs: not mounted.
Adding Rwfus to /home/.steamos/offload/usr/local/bin
'./rwfus_include/config.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/config.sh'
'./rwfus_include/disk.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/disk.sh'
'./rwfus_include/info.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/info.sh'
'./rwfus_include/manage-install.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/manage-install.sh'
'./rwfus_include/service-main.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/service-main.sh'
'./rwfus_include/service.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/service.sh'
'./rwfus_include/testlog.sh' -> '/home/.steamos/offload/usr/local/bin/rwfus_include/testlog.sh'
'./rwfus' -> '/home/.steamos/offload/usr/local/bin/rwfus'
Unmasking and enabling usr-local.mount
Unit usr-local.mount does not exist, proceeding anyway.
Failed to enable unit: Unit file usr-local.mount does not exist.
Restarting Rwfus
Created symlink /etc/systemd/system/multi-user.target.wants/rwfusd.service ? /etc/systemd/system/rwfusd.service.
Done!

However, rwfus is not present in /usr/local/bin:

(deck@steamdeck /)$ rwfus -s
bash: rwfus: command not found
(127)(deck@steamdeck /)$ ls -a /usr/local/bin
.  ..
(deck@steamdeck /)$ 

Reading the log file it looks like this issue may be related to the removal of usr-local.mount as discussed in bug #39

I worked around the issue by adding the rwfus dir to my $PATH in ~/.bash_profile with this line:

export PATH=$PATH:/home/deck/rwfus

Obviously for others the path declaration may need be different depending on where rwfus is installed.

@gbdrbob gbdrbob changed the title rwfus --install-bin fails in 0.5.5 rwfus --install-bin fails in 0.5.0.b1 Jun 16, 2024
@ValShaped
Copy link
Owner

Well, that's a shame. Glad you got it working! I'll fix it in the next update.

@ValShaped
Copy link
Owner

This release definitely doesn't fix your issue, but you're doing it the way it's supposed to be done.

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

Successfully merging a pull request may close this issue.

2 participants