Skip to contentSkip to conversation

ro/rw boot order

DISCUSSION GNUtoo 3 participants 3 messages Jan 4, 2010 – Jan 9, 2010

lore
Share & tools
lore

GNUtoo

author
#0 lore raw

hi,
I used that combinaison:
MACHINE = "eee701"
DISTRO = "angstrom-2008.1"

eee701 beeing that file:
#-----------------------------------------------------------------------------
#@TYPE: Machine
#@NAME: eeepc 701
#@DESCRIPTION: Machine configuration for the eeepc 701 netbook
#-----------------------------------------------------------------------------

require i686-generic.conf

PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" PREFERRED_PROVIDER_virtual/libgl = "mesa-dri" MACHINE_DRI_MODULES = "i915"

XSERVER = "xserver-xorg xf86-video-intel xf86-input-evdev xf86-input-keyboard xf86-input-mouse"

MACHINE_FEATURES +=" wifi alsa "
MACHINE_DISPLAY_WIDTH_PIXELS = "800"
MACHINE_DISPLAY_HEIGHT_PIXELS = "480"
MACHINE_DISPLAY_ORIENTATION = "0"

XSERVER ?= "xserver-xorg \
           xf86-video-intel \
           xf86-input-evdev \
	   xf86-input-keyboard \
	   xf86-input-mouse"

IMAGE_FSTYPES += "tar.gz"

PREFERRED_PROVIDER_virtual/kernel ?= "linux"
PREFERRED_VERSION_linux ?= "2.6.32"

so I use a BIOS and grub-0.97 on top of it

and menu.lst says root=/dev/hda1 ro
(it should be /dev/sda1 but that's another problem I should fix for my machine(with a new overriden menu.lst))

and in angstrom /etc/rcS.d there is:
S03udev
S10checkroot

And when booting it freeze unless you change udev/checkroot order or put rw to the kernel command line.

I bet that some people already started working arround the issue:
CMDLINE = "root=/dev/sda1 rw init=/sbin/init console=ttyS2,115200n8 mem=128M nohz=off"
can be found in the archos5 machine config

what's the best fix for that?

Denis.

#1 lore raw
Quoted 9 lines · GNUtoo

and menu.lst says root=/dev/hda1 ro

and in angstrom /etc/rcS.d there is:
S03udev
S10checkroot

And when booting it freeze unless you change udev/checkroot order or put rw to the kernel command line.

Quoted 6 lines

I bet that some people already started working arround the issue:
CMDLINE = "root=/dev/sda1 rw init=/sbin/init console=ttyS2,115200n8 mem=128M nohz=off"
can be found in the archos5 machine config

what's the best fix for that?

AFAIK, the only write access udev initscript needs is to create the device cache. It is controlled by the DEVCACHE variable in the /etc/default/udev - either point it to a read-writeable and mounted partition or disable devcache by unsetting the variable (all Zaurus machines do that by default).

I've been meaning for some time now to fix it by moving the devcache handling after the checkroot... But since all my machines mount rootfs writeable, it hasn't been very critical for me - need to find some spare time actually do it properly :)

Signature · 1 line
Denys
#2 lore raw
In reply to GNUtoo
Quoted 6 lines · GNUtoo

and in angstrom /etc/rcS.d there is:
S03udev
S10checkroot

And when booting it freeze unless you change udev/checkroot order or put rw to the kernel command line.

Oh, I just realized you already asked the question I sent just 5 minutes ago ;-)

Take a look at bugs 5090 and 5246. We should come up with a proper solution. Let's hope Denys finds some time soon.