Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs busybox mount / ro then udev remount?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1234

PostPosted: Fri Jan 18, 2013 8:59 pm    Post subject: initramfs busybox mount / ro then udev remount? Reply with quote

Setting up a initramfs on a new install today and I have a question
Why does root need to be mounted in the initramfs:
mount -o ro ?
and then remounted rw by udev?
and how do I debug this process?
The boot completes (kernel loads initramfs gets loaded hands off to init)
but then after login I am dumped into a readonly root
udev does not remount my root?

I set this up about a year ago on a different box and did not need to include a root (/) in fstab
it gets added to mtab and the init script has the same line starting with
Code:
mount -o ro


I have devtmpfs.

Will try putting it in fstab next.

EDIT#1
that makes no difference.

Ah ha its needs something like this:
Code:
CMDLINE=`cat /proc/cmdline`
exec switch_root /mnt/root /sbin/init ${CMDLINE}


now it boots and does not need /etc/fstab
however I am still curious why not mount it rw in the early userspace?
Thanks
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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