View previous topic :: View next topic |
Author |
Message |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Sep 15, 2009 6:16 pm Post subject: initramfs, what "root=" to specify? [SOLVED} |
|
|
Okay, what I'm trying to do is have the kernel boot into an initramfs (compiled into the kernel image itself), which creates a tmpfs, fetches a tarball over ssh and unpacks it on that tmpfs, and then switch_root to the tmpfs.
I've been testing it under qemu, and I have everything working if I have the initramfs files as a disk image, however when I try to use an initramfs it balks with; Code: | VFS: Cannot open root device "<NULL>" or unknown-block(8,35)
Please append a correct "root=" boot option; here are the available partitions: | I've tried a few things, such as root=/dev/ram0, but I have no idea what the right argument would be, and google isn't turning up much.
The problem is, with the way I want to do things, there will bo no block devices whatsoever, not even a ramdisk...
Help? _________________ "You have to invite me in"
Last edited by Sadako on Tue Sep 15, 2009 10:38 pm; edited 1 time in total |
|
Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Sep 15, 2009 10:38 pm Post subject: |
|
|
Nevermind, I re-compiled the kernel without any block device support, and it "just works".
Sounds kinda like a bug to me, as there's no reason you should have to specify a root device if it's possible to boot without one.
Needs a "root=null" or "norootdev" kernel option or something, methinks... _________________ "You have to invite me in" |
|
Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Sep 15, 2009 11:13 pm Post subject: |
|
|
Huh, neat.
I edited my grub.conf and rebooted - no problem Code: | default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,0)
kernel /boot/kernel
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|