Skip to content

generate-shutdown-ramfs.service failure#1563

Merged
brianmcgillion merged 1 commit intotiiuae:mainfrom
gngram:push/generate-shutdown-ramfs_failure
Nov 13, 2025
Merged

generate-shutdown-ramfs.service failure#1563
brianmcgillion merged 1 commit intotiiuae:mainfrom
gngram:push/generate-shutdown-ramfs_failure

Conversation

@gngram
Copy link
Copy Markdown
Contributor

@gngram gngram commented Nov 13, 2025

Description of Changes

Fixes permission related issues in generate-shutdown-ramfs.service after systemd upgrade

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • Author has run make-checks and it passes
  • All automatic GitHub Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing Instructions

  • Check the log of generate-shutdown-ramfs.service from previous boot

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

  1. Reboot the machine and check the log using command from host:
    "journalctl -u generate-shutdown-ramfs.service -b 1"
    It should show service finished successfully.

Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
@milva-unikie
Copy link
Copy Markdown

Tested on Lenovo X1 (nixos-rebuild switch)

Issue has been fixed. Boot works fine.

Without this PR

-- Boot 63f2ae5dca4d47149bc77dd9681466fe --
Nov 13 08:53:47 gui-vm systemd[1]: Starting Generate shutdown ramfs...
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]: /etc/initrd-release -> /nix/store/wqg733k88h4ghgrn37i3wq027zavvh12-etc-os-release
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]: Error: failed to create directories to "/run/initramfs//etc"
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]: Caused by:
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]:     Permission denied (os error 13)
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]: Location:
Nov 13 08:53:48 gui-vm make-initrd-ng[2564]:     src/main.rs:340:18
Nov 13 08:53:48 gui-vm systemd[1]: generate-shutdown-ramfs.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 08:53:48 gui-vm systemd[1]: generate-shutdown-ramfs.service: Failed with result 'exit-code'.
Nov 13 08:53:48 gui-vm systemd[1]: Failed to start Generate shutdown ramfs.

With this PR

-- Boot 088773f490894c57bea8f01c3f510e6c --
Nov 13 08:57:04 gui-vm systemd[1]: Starting Generate shutdown ramfs...
Nov 13 08:57:04 gui-vm make-initrd-ng[2194]: /etc/initrd-release -> /nix/store/wqg733k88h4ghgrn37i3wq027zavvh12-etc-os-release
Nov 13 08:57:04 gui-vm make-initrd-ng[2194]: /etc/os-release -> /nix/store/wqg733k88h4ghgrn37i3wq027zavvh12-etc-os-release
Nov 13 08:57:04 gui-vm make-initrd-ng[2194]: /shutdown -> /nix/store/72x0ncl53xv5zlc9r8v758qzsq4jci9r-guivm-systemd-258/lib/systemd/systemd-shutdown

@milva-unikie milva-unikie added Tested on Lenovo X1 Carbon This PR has been tested on Lenovo X1 Carbon and removed Needs Testing CI Team to pre-verify labels Nov 13, 2025
@brianmcgillion brianmcgillion merged commit 630f1b6 into tiiuae:main Nov 13, 2025
28 checks passed
@gngram gngram deleted the push/generate-shutdown-ramfs_failure branch November 13, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tested on Lenovo X1 Carbon This PR has been tested on Lenovo X1 Carbon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants