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

move-logs-to-opt fails to install if var-log.mount is masked #839

Open
StachuDotNet opened this issue Mar 8, 2024 · 1 comment
Open
Labels
bug Something isn't working packages Add or improve packages of the repository
Milestone

Comments

@StachuDotNet
Copy link

After downloading the .ipk artifact from this PR, and transferring it to my rM, I attempted to opkg install ./move-logs-to-opt.ipk, which failed

reMarkable: ~/ opkg install ./move-logs-to-opt_0.0.1-1_rmall.ipk
Package move-logs-to-opt (0.0.1-1) installed in root is up to date.
Configuring move-logs-to-opt.
Warning: Stopping systemd-journald.service, but it can still be activated by:
  systemd-journald.socket
  systemd-journald-dev-log.socket
Moving log files to new location
Failed to enable unit: Unit file /lib/systemd/system/var-log.mount is masked.
Collected errors:
 * pkg_run_script: package "move-logs-to-opt" postinst script returned status 1.
 * opkg_configure: move-logs-to-opt.postinst returned 1.

The core issue here seems to be Failed to enable unit: Unit file /lib/systemd/system/var-log.mount is masked..

I am running OS version 3.3.2.166 on my reMarkable 2.

I'm unsure why it was 'masked' -- this is a new concept to me.


I wasn't sure what to do here, so asked in Discord and someone suggested I run systemctl unmask var-log.mount and try again.

After doing so, I ran opkg remove move-logs-to-opt, attempted an install again, and all was well.
(it seemed as though some install-related files hung around even for the above-failed installed)

@StachuDotNet StachuDotNet added bug Something isn't working packages Add or improve packages of the repository labels Mar 8, 2024
@Eeems Eeems added this to the 3.x support milestone Mar 8, 2024
@Eeems
Copy link
Member

Eeems commented Mar 8, 2024

We don't want to add code to unmask something we aren't masking to a package, so we don't want to work around it that way. I'm surprised that the unit was masked though, as it doesn't appear to be masked in the 3.3.2 OS image, as it doesn't exist. Since this package is creating a brand new var-log.mount unit and starting it, this really shouldn't be happening.

Since we don't support 3.3.2 yet, this'll have to be on the backburner for now. It'll be something we need to test and ensure that it doesn't happen when we get 3.3.2 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packages Add or improve packages of the repository
Projects
None yet
Development

No branches or pull requests

2 participants