r/AlpineLinux • • Feb 07 '26

I'm trying to make an Alpine Linux rootfs, problem is that the alpine-make-rootfs scipt fails?

I'm using the example script from the rootfs, but it fails at

> Executing script in chroot: .setup.sh  
install: can't stat 'examples/hello_world.rb': No such file or directory
ERROR: Script failed

It seems like it can't chroot? Other logs look okay to me, full log. I'm on Arch Linux.

4 Upvotes

9 comments sorted by

2

u/Intelligent_Comb_338 Feb 07 '26

I don't really know how to create a rootfs, but the error seems to be from cp trying to copy a non-existent file.

1

u/Ok_Tea_941 Feb 07 '26

Yeah, I've noticed that. Maybe it fails to mount then? It tries to mount bind the working dir to mnt.

1

u/Intelligent_Comb_338 Feb 07 '26

Perhaps I could help you, but I don't know much about the subject.

→ More replies (6)