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

Firstboot service fails #20

Open
lokomoti opened this issue May 17, 2024 · 1 comment
Open

Firstboot service fails #20

lokomoti opened this issue May 17, 2024 · 1 comment
Assignees

Comments

@lokomoti
Copy link

lokomoti commented May 17, 2024

On RPI5, with latest medium image. I managed to build the image in WSL2 in Ubuntu. In the Raspberry Pi 5, it boots with no issues. The SSH is configured, user is chaged and SSH certs are working. I noticed that firstboot.sh is not executed.

I verified that it is on the FAT32 partition of the SD card along with the other files.

The service failed, because it cannot find the firstboot.sh


pyropi@raspberrypi:~ $ sudo systemctl status firstboot.service
○ firstboot.service - FirstBoot
Loaded: loaded (/lib/systemd/system/firstboot.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Fri 2024-03-15 15:31:16 GMT; 5min ago
└─ ConditionFileNotEmpty=/boot/firstboot.sh was not met

Mar 15 15:31:16 raspberrypi systemd[1]: firstboot.service - FirstBoot was skipped because of an unmet condition check (ConditionFileNotEmpty=/boot/firstboot.sh).

If i cd to /boot, it is not there.

Would you please help?
Jakub

@lokomoti
Copy link
Author

It was caused by wrong location of the firstboot.sh in firstboot.service. The new Pi OS has it in /boot/firmware

@kenfallon kenfallon self-assigned this May 24, 2024
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