Skip to content

Running a custom linux image #7

@antonioprates

Description

@antonioprates

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions