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

Running a custom linux image #7

Open
antonioprates opened this issue Aug 16, 2023 · 0 comments
Open

Running a custom linux image #7

antonioprates opened this issue Aug 16, 2023 · 0 comments

Comments

@antonioprates
Copy link

antonioprates commented Aug 16, 2023

So I was trying to export a new image on jslinux. Something like...

extract the files from apline distro Docker image:

docker create --name temp_container i386/alpine
mkdir ~/docker_image_contents
docker cp temp_container:/. ~/docker_image_contents
docker rm temp_container

then copy it to a new binary image:

dd if=/dev/zero of=root.bin bs=1M count=32
loop_device=$(sudo losetup --find --show root.bin)
sudo mkfs.ext2 $loop_device
mkdir ~/mounted_image
sudo mount $loop_device ~/mounted_image
sudo cp -a ~/docker_image_contents/. ~/mounted_image/

unmount, detach and cleanup:

sudo umount ~/mounted_image
sudo losetup -d $loop_device
rm -rf ~/mounted_image
rm -rf ~/docker_image_contents

but then if I replace the root.bin with this image I get:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

So, this has not worked so far... Not sure if you have done any changes to the root.bin or if you have any suggestions/idea on how we can tinker this and get a more updated/different linux image to run on it jslinux. Any hint is welcome.

My end goal would be to build an image running FatScript REPL on it as a web playground.

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

1 participant