Closed groundwater closed 10 years ago
Looks like there is something wrong with your initrd image. Have you changed content of initrd
directory? It's unable to locate file initrd/system/startup.js
.
Image located at disk/boot/initrd
. You can rebuild it
./makeinitrd.sh
Or using docker
docker run --rm -w /mnt -v $(pwd):/mnt:rw runtimejs ./makeinitrd.sh
Or you can send me your image file and I'll look into it.
I think my mkinitrd
is broken
vagrant@precise64:/vagrant/runtime$ ./mkinitrd -c disk/boot/initrd initrd
vagrant@precise64:/vagrant/runtime$ echo $?
0
vagrant@precise64:/vagrant/runtime$ hexdump -C disk/boot/initrd
00000000 fe ca fe ca 50 43 4b 47 00 00 00 00 00 00 00 00 |????PCKG........|
00000010
vagrant@precise64:/vagrant/runtime$
I tried rm mkinitrd
and then sudo docker-build.sh
again, but same result :frowning:
It actually created an empty image. Looks like it's unable to access initrd
files.
Try this without docker:
g++ -std=c++11 -O3 src/mkinitrd/mkinitrd.cc src/common/package.cc src/common/crc64.cc -Isrc -o mkinitrd
./mkinitrd -c disk/boot/initrd initrd
vagrant@precise64:/vagrant/runtime$ g++ -std=c++11 -O3 src/mkinitrd/mkinitrd.cc src/common/package.cc src/common/crc64.cc -Isrc -o mkinitrd
cc1plus: error: unrecognized command line option '-std=c++11'
cc1plus: error: unrecognized command line option '-std=c++11'
cc1plus: error: unrecognized command line option '-std=c++11'
Try replacing c++11 with C++11.
vagrant@precise64:/vagrant/runtime$ g++ -std=C++11 -O3 src/mkinitrd/mkinitrd.cc src/common/package.cc src/common/crc64.cc -Isrc -o mkinitrd
cc1plus: error: unrecognized command line option '-std=C++11'
cc1plus: error: unrecognized command line option '-std=C++11'
cc1plus: error: unrecognized command line option '-std=C++11'
Maybe I should update my system, thoughts?
vagrant@precise64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
I upgraded to Ubuntu 14.04, but the same problem is happening. It looks like my initrd
is empty.
@iefserge I think may be the ./mkinitrd -c disk/boot/initrd initrd
command is not working. It exits immediately without any output, but returns exit code 0.
Are you sure you are running the ./mkinitrd -c .... command with the correct permissions? If you have cloned the repository like root, but you are running the command like a normal user, then mkinitrd command will not create anything.
@tany2001 I had the runtime project mounted through vagrants shared folders. I copied the directory into my Ubuntu home directory, and everything built.
tl;dr don't use vagrant's shared mounts
@tany2001 @iefserge thanks for the help
I'm getting this error when trying to start
Details