All of lore.kernel.org
 help / color / mirror / Atom feed
* One warning message when switching root to /sysroot (which is the  mount point for NFS)
@ 2010-06-12  6:47 Min Jun,Xi
       [not found] ` <AANLkTimBgxVQ4C-dUBPVhG6BHNDQVpD2XFL8NmuhaDZB-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Min Jun,Xi @ 2010-06-12  6:47 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Hi all,

I am using one NFS directory as the root file system; at first, I use
yum with "--installroot=/tmp/rootimg" option to install all the
necessary rpm packages into "/tmp/rootimg". Then, I added one simple
dracut module into the rootimg (which only output some information
indeed), and I run "chroot /tmp/rootimg dracut xxx" to generate the
"initrd.gz" file.

I updated my kernel command lines like this:
++++++++++++++++++++++++++++++++++
#netboot rhel6-ppc64-compute
timeout=5
image=xcat/netboot/rhel6/ppc64/compute/kernel
        label=xcat
        initrd=xcat/netboot/rhel6/ppc64/compute/initrd.gz
        append="root=nfs4:192.168.11.107:/tmp/rootimg:rw  ip=dhcp
rdshell rdinfo rdinitdebug"
+++++++++++++++++++++++++++++++++++

The diskless node can be booted, but with some error/warning messages
during the scripts under /etc/init.d/ are being executed. You can see
them from the following message.

++++++++++++++++++++++++++++++++++++++++++++++++++
+ exec switch_root /sysroot /sbin/init
mount: only root can do that (effective UID is -2)
                Welcome to Red Hat Enterprise Linux Server
                Press 'I' to enter interactive startup.
Starting udev: [  OK  ]
Setting hostname ca4dsls02:  [  OK  ]
Setting up Logical Volume Management:   No volume groups found
[  OK  ]
Checking filesystems
WARNING: couldn't open /etc/fstab: No such file or directory
Checking all file systems.
[  OK  ]
mount: only root can do that (effective UID is -2)
Mounting local filesystems:  mount: only root can do that (effective UID is -2)
[FAILED]
chgrp: changing group of `/var/run/utmp': Invalid argument
                                                          chgrp:
changing group of `/var/log/wtmp': Invalid argument

                                             chown: changing ownership
of `/tmp/.ICE-unix': Invalid argument
 Enabling /etc/fstab swaps:  swapon: /etc/fstab: open failed: No such
file or directory

                [FAILED]
Entering non-interactive startup
Retrigger failed udev events[  OK  ]
Starting sshd: /var/empty/sshd must be owned by root and not group or
world-writable.
[FAILED]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

So, here, I have several questions,
1) why does "mount: only root can do that (effective UID is -2)" show
here? what can I do to make it not show here?

2) "/etc/fstab" is not there, should I create one before switching
root to the NFS mountpoint?

3) "chgrp" and "chown" fails here, should I prepare the directories
myself before switching root?

Thank you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-17  9:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-12  6:47 One warning message when switching root to /sysroot (which is the mount point for NFS) Min Jun,Xi
     [not found] ` <AANLkTimBgxVQ4C-dUBPVhG6BHNDQVpD2XFL8NmuhaDZB-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-12  7:27   ` Min Jun,Xi
     [not found]     ` <AANLkTik38g1JnWlVZTTCRV2QNlQythULFrtHzu9E1tw5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-17  9:29       ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.