ading2210 / shimboot

Boot a desktop Linux distribution from a Chrome OS RMA shim.
https://shimboot.ading.dev
GNU General Public License v3.0
68 stars 22 forks source link

Operation Not permitted #16

Closed DogeLeader closed 2 months ago

DogeLeader commented 3 months ago

this error happens when I use the command: sudo ./build_rootfs.sh data/rootfs bookworm:

mknod: /workspace/shimboot/rootfs/test-dev-null: Operation not permitted E: Cannot install into target '/workspace/shimboot/rootfs' mounted with noexec or nodev

Error Screen

OtterCodes101 commented 3 months ago

You cannot use Gitpod or Github Codespaces to build Shimboot.

DogeLeader commented 3 months ago

Alright, thanks.

ading2210 commented 2 months ago

You can try remounting the filesystem with the exec and dev flags.

Find the mount point by doing findmnt -T .

On my PC this prints out the following:

TARGET SOURCE    FSTYPE OPTIONS
/      /dev/sdb2 ext4   rw,noatime

Now run sudo mount -o remount,exec,dev {TARGET}, replacing {TARGET} with the path listed as the target in the output of the previous command.

DogeLeader commented 2 months ago

what does the mountpoint look like

DogeLeader commented 2 months ago

where in the output is it?

DogeLeader commented 2 months ago

It says "permission denied"

ading2210 commented 2 months ago

Can you send the output of the commands you're running?

ading2210 commented 2 months ago

@DogeLeader Try running these commands in your terminal, I tested it to work on Github Codespaces:


mountpoint="$(findmnt -T . | tail -n1 | cut -f1 -d' ')"
mount -o remount,dev,exec "$mountpoint"
ading2210 commented 2 months ago

This was also fixed in the latest commit, so do a git pull and try again.

DogeLeader commented 2 months ago

abc@418b89848064:~/shimboot$ findmnt -T . TARGET SOURCE FSTYPE OPTIONS /config /dev/loop3[/codespacemount/workspace/DesktopOnCodespaces/Save] ext4 rw,node

ading2210 commented 2 months ago

That looks to be right, you can try re-running the scripts now.

DogeLeader commented 2 months ago

what should i copy?

DogeLeader commented 2 months ago

Out of the output

ading2210 commented 2 months ago

You don't need to copy anything, I've already fixed the bug here. Just clone the repository again and retry the build.

DogeLeader commented 2 months ago

oh alright ill try

DogeLeader commented 2 months ago

sudo ./build_rootfs.sh data/rootfs bookworm

DogeLeader commented 2 months ago

mount: /config: permission denied.

ading2210 commented 2 months ago

Did you delete and clone the repository again from scratch?

DogeLeader commented 2 months ago

yep

ading2210 commented 2 months ago

Try running sudo DEBUG=1 ./build_rootfs.sh data/rootfs bookworm, and copy-paste the entire output of that command.

DogeLeader commented 2 months ago
DogeLeader commented 2 months ago

what I do from here on?

DogeLeader commented 2 months ago

I figured it out the command only works when it is this: sudo ./build_rootfs.sh /data/rootfs bookworm. You have to add a / before data. But after that I still did not have full access to /config.

DogeLeader commented 2 months ago

I could not complete the process successfully. So I have one request, please add the: Jacuzzi board to the pre-built image uploads

DogeLeader commented 2 months ago

Thanks for all the tech support!

DogeLeader commented 2 months ago

I look forward to your response!

ading2210 commented 2 months ago

Jacuzzi is an ARM-based board, those are not supported yet. See issue #8

DogeLeader commented 2 months ago

Are you going to add arm support in the future?

DogeLeader commented 2 months ago

Because it would be very helpful.

DogeLeader commented 2 months ago

Not going lie, my the school has our Chromebooks locked down tight: Our Chromebooks are arm based and they have digital write protection.

OtterCodes101 commented 2 months ago

yes, again see issue #8 for arm support progress