[lfs-support] Exotic lfs compiling question

2014-02-20 Thread loki
Heya all.

Need some help. I have an old lfs installation which is in production
use, for the past 5-6 years. I guess it's version 6.3 or something since
it has kernel 2.6 on it. It is time to install a new version on it. But
there are the following problems:

1.) Since it is in production it can't be offline longer than 3 hrs. So
the new lfs has to be compiled while the old dist is still running and
then when everything is finished just copied to root.
2.) The compilation has to be done on this machine.
3.) There can't be installed any other distribution (Ubuntu, RedHat,...)
or any virtual machine.
4.) Obviously I can't compile lfs 7.4 with 6.3.

So here is what I need. Which lfs version can I use as a jump pad. For
instance can I compile 7.0 with 6.3 and then compile 7.4 with 7.0? I can
use chroot on this machine. And it isn't a problem even if I have to do
a three step compile (i.e. 6.3 - 7.0 - 7.1 - 7.4)

So the question is can I compile some version of lfs which can be
compiled on 6.3 and can compile 7.4 and can I do both or more
compilations in chroot?

THX in advance...
Daniel
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Exotic lfs compiling question

2014-02-20 Thread William Harrington

On Feb 20, 2014, at 8:47 AM, loki wrote:

 So the question is can I compile some version of lfs which can be  
 compiled on 6.3 and can compile 7.4 and can I do both or more  
 compilations in chroot?

You can build LFS 7.4 (probably go with 7.5-rc1) from 6.3 with some  
minor tweaks.

If your running kernel is up to at least 2.6.32  then default glibc  
configure options will work. If it is less than 2.6.32, then you'll  
need to adjust the glibc configure commands otherwise you  will get  
FATAL: Kernel too old once you start using the new glibc in tools.

Other than upgrading tar if not already so it'll us xz, and add xz to  
your system.

6.3 still meets the host system requirements outside of the running  
kernel update, tar update, and addition of xz. Gawk 4.1 upgrade isn't  
necessary as 3.15 even still works when building tools. However, you  
may want to anyway.

Without upgrading the kernel headers you won't be able to upgrade your  
host's e2fsprogs to 1.42 and upgrade udev.
You'll also need to upgrade make.

I updated the lfs livecd a while back to build 7.x versions. you can  
look at my notes to see what I upgraded. If I didn't upgrade something  
to the newest version and it is stuck at an old version, namely udev  
and e2fsprogs, it is cause of the old kernel headers installed.

http://clfs.org/~kb0iic/livecdupd/

I haven't tested the updated livecd with 7.5, but if host system  
requirements didn't change since 7.4, it'll work.

You can bring your 6.3 up to date rather easily without much effort.

Sincerely,

William Harrington
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Oshadha Gunawardena
@Bruce, I did exactly as you have mentioned and it seems that only the
scripts are in */etc/rc.d/rcS.d/* will get executed

root:/# ls -l /etc/rc.d/rcS.d/
total 0
lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs -
../init.d/mountvirtfs
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules
lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet
lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev
lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs
lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry - ../init.d/udev_retry
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console
lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl



On Thu, Feb 20, 2014 at 9:23 AM, Bruce Dubbs bruce.du...@gmail.com wrote:

 Oshadha Gunawardena wrote:
  @Pierre, I checked the /etc/rc.d/init.d/network script it seems OK. And
  the run levels are 3, 4, 5 (as per the script). Also I checked in
 
  /etc/rc.d/rc.3
  /etc/rc.d/rc.4
  /etc/rc.d/rc.5
 
  And there are symlinks to the network script. It seems like the
  network script it self isn't get executed. Is there a way that I can
  ensure the script is being executed? Like altering it maybe

 Don't top post.

 Ecit /etc/sysconfig/rc.site and uncomment:

 #IPROMPT=yes # Whether to display the interactive boot promp
 #itime=3# The ammount of time (in seconds) to display the prompt

 When you boot, it asks if you want to do an interactive prompt.  Say
 yes.  You can then step through the boot scripts one at a time.

 Edit /etc/rc.d/init.d/network and add

 'echo $interface' right below the line

 interface=${file##*/ifconfig.}

 Then lets see what you get.

-- Bruce
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Exotic lfs compiling question

2014-02-20 Thread loki
On Thu, 2014-02-20 at 09:06 -0600, William Harrington wrote:


 If your running kernel is up to at least 2.6.32  then default glibc  
 configure options will work. If it is less than 2.6.32, then you'll  
 need to adjust the glibc configure commands otherwise you  will get  
 FATAL: Kernel too old once you start using the new glibc in tools.


Kernel is 2.6.35.3.

 
 Other than upgrading tar if not already so it'll us xz, and add xz to  
 your system.


This shouldn't be a problem.


 
 6.3 still meets the host system requirements outside of the running  
 kernel update, tar update, and addition of xz. Gawk 4.1 upgrade isn't  
 necessary as 3.15 even still works when building tools. However, you  
 may want to anyway.
 
 Without upgrading the kernel headers you won't be able to upgrade your  
 host's e2fsprogs to 1.42 and upgrade udev.
 You'll also need to upgrade make.
 


Ok, there I don't know if I have a problem. A small info on the server
that I wan't to update. It's a Database server with 
MySQL 5.1.45, PostgreSQL 9.1.8, and the most problematic one is ArcSDE
10.1 DB connector which has some dependant
X11 libraries. I don't know how it will react with upgraded kernel
headers, Gawk, e2fs and especially udev. And for udev I also dread if
the 
bonding of 4 network cards and the Adaptec RAID adapter will have
problems. 
As I said I can turn off the machine only for 3 hrs and that is the
complete fallout that it can have for this year. So I would go with less
if I can. The DB backup will take me 20mins, the filesystem adaptation
another 15min, and then I have 2:25hrs for problems. I would like to
have no problems. :) This machine has been offline for 2hrs in summary
for the past 4yrs.  I even thought to put another machine in its place
until I finish the compilation but unfortunatly I don't have another
machine which could cope with the load. 


 I updated the lfs livecd a while back to build 7.x versions. you can  
 look at my notes to see what I upgraded. If I didn't upgrade something  
 to the newest version and it is stuck at an old version, namely udev  
 and e2fsprogs, it is cause of the old kernel headers installed.
 
 http://clfs.org/~kb0iic/livecdupd/


Thanks, will check it. And thank you for your answer.

Daniel


attachment: face-smile.png-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Bruce Dubbs
Oshadha Gunawardena wrote:
 @Bruce, I did exactly as you have mentioned and it seems that only the
 scripts are in */etc/rc.d/rcS.d/* will get executed

 root:/# ls -l /etc/rc.d/rcS.d/
 total 0
 lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs -
 ../init.d/mountvirtfs
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules
 lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet
 lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev
 lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs
 lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry - ../init.d/udev_retry
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console
 lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl


Does /etc/inittab have:

id:3:initdefault:

The following is being run:

si::sysinit:/etc/rc.d/init.d/rc S

but

l3:3:wait:/etc/rc.d/init.d/rc 3

apparently is not.   What are the contents of /etc/rc.d/rc3.d/ ?

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Exotic lfs compiling question

2014-02-20 Thread Bruce Dubbs
loki wrote:
 Heya all.

 Need some help. I have an old lfs installation which is in production
 use, for the past 5-6 years. I guess it's version 6.3 or something since
 it has kernel 2.6 on it. It is time to install a new version on it. But
 there are the following problems:

 1.) Since it is in production it can't be offline longer than 3 hrs. So
 the new lfs has to be compiled while the old dist is still running and
 then when everything is finished just copied to root.
 2.) The compilation has to be done on this machine.
 3.) There can't be installed any other distribution (Ubuntu, RedHat,...)
 or any virtual machine.
 4.) Obviously I can't compile lfs 7.4 with 6.3.

 So here is what I need. Which lfs version can I use as a jump pad. For
 instance can I compile 7.0 with 6.3 and then compile 7.4 with 7.0? I can
 use chroot on this machine. And it isn't a problem even if I have to do
 a three step compile (i.e. 6.3 - 7.0 - 7.1 - 7.4)

 So the question is can I compile some version of lfs which can be
 compiled on 6.3 and can compile 7.4 and can I do both or more
 compilations in chroot?

This may help:

http://www.linuxfromscratch.org/~bdubbs/files/updating-lfs.html

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Oshadha Gunawardena
Yes id does included id:3:initdefault:

root:/# cat /etc/inittab
# Begin /etc/inittab
id:3:initdefault:
si::sysinit:/etc/rc.d/init.d/rc S
l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
su:S016:once:/sbin/sulogin
1:2345:respawn:/sbin/agetty
2:2345:respawn:/sbin/agetty
3:2345:respawn:/sbin/agetty
4:2345:respawn:/sbin/agetty
5:2345:respawn:/sbin/agetty
6:2345:respawn:/sbin/agetty
--noclear tty1 9600
tty2 9600
tty3 9600
tty4 9600
tty5 9600
tty6 9600
# End /etc/inittab

And also the in /etc/rc.d/rc3.d/ has the network script

root:/# ls -l /etc/rc.d/rc3.d/
total 0
lrwxrwxrwx 1 root root 18 Feb 17 10:36 S10sysklogd - ../init.d/sysklogd
lrwxrwxrwx 1 root root 17 Feb 17 10:36 S20network - ../init.d/network



On Thu, Feb 20, 2014 at 10:20 PM, Bruce Dubbs bruce.du...@gmail.com wrote:

 Oshadha Gunawardena wrote:
  @Bruce, I did exactly as you have mentioned and it seems that only the
  scripts are in */etc/rc.d/rcS.d/* will get executed
 
  root:/# ls -l /etc/rc.d/rcS.d/
  total 0
  lrwxrwxrwx 1 root root 21 Feb 17 10:36 S00mountvirtfs -
  ../init.d/mountvirtfs
  lrwxrwxrwx 1 root root 17 Feb 17 10:36 S05modules - ../init.d/modules
  lrwxrwxrwx 1 root root 18 Feb 17 10:36 S08localnet - ../init.d/localnet
  lrwxrwxrwx 1 root root 14 Feb 17 10:36 S10udev - ../init.d/udev
  lrwxrwxrwx 1 root root 14 Feb 17 10:36 S20swap - ../init.d/swap
  lrwxrwxrwx 1 root root 17 Feb 17 10:36 S30checkfs - ../init.d/checkfs
  lrwxrwxrwx 1 root root 17 Feb 17 10:36 S40mountfs - ../init.d/mountfs
  lrwxrwxrwx 1 root root 17 Feb 17 10:36 S45cleanfs - ../init.d/cleanfs
  lrwxrwxrwx 1 root root 20 Feb 17 10:36 S50udev_retry -
 ../init.d/udev_retry
  lrwxrwxrwx 1 root root 17 Feb 17 10:36 S70console - ../init.d/console
  lrwxrwxrwx 1 root root 16 Feb 17 10:36 S90sysctl - ../init.d/sysctl


 Does /etc/inittab have:

 id:3:initdefault:

 The following is being run:

 si::sysinit:/etc/rc.d/init.d/rc S

 but

 l3:3:wait:/etc/rc.d/init.d/rc 3

 apparently is not.   What are the contents of /etc/rc.d/rc3.d/ ?

-- Bruce

 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Bruce Dubbs
Oshadha Gunawardena wrote:
 Yes id does included id:3:initdefault:

 root:/# cat /etc/inittab
 # Begin /etc/inittab
 id:3:initdefault:
 si::sysinit:/etc/rc.d/init.d/rc S
 l0:0:wait:/etc/rc.d/init.d/rc 0
 l1:S1:wait:/etc/rc.d/init.d/rc 1
 l2:2:wait:/etc/rc.d/init.d/rc 2
 l3:3:wait:/etc/rc.d/init.d/rc 3
 l4:4:wait:/etc/rc.d/init.d/rc 4
 l5:5:wait:/etc/rc.d/init.d/rc 5
 l6:6:wait:/etc/rc.d/init.d/rc 6
 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
 su:S016:once:/sbin/sulogin
 1:2345:respawn:/sbin/agetty
 2:2345:respawn:/sbin/agetty
 3:2345:respawn:/sbin/agetty
 4:2345:respawn:/sbin/agetty
 5:2345:respawn:/sbin/agetty
 6:2345:respawn:/sbin/agetty
 --noclear tty1 9600
 tty2 9600
 tty3 9600
 tty4 9600
 tty5 9600
 tty6 9600
 # End /etc/inittab

 And also the in /etc/rc.d/rc3.d/ has the network script

 root:/# ls -l /etc/rc.d/rc3.d/
 total 0
 lrwxrwxrwx 1 root root 18 Feb 17 10:36 S10sysklogd - ../init.d/sysklogd
 lrwxrwxrwx 1 root root 17 Feb 17 10:36 S20network - ../init.d/network

Please stop top posting or you will get ignored.  Also, trim the posts 
to what is needed.

Are you saying that 'ps -e|grep log' does not give syslogd and klogd?

Lets also review the files in /etc/sysconfig/ and the contents of 
/etc/sysconfig/ifconfig*  and the links in  /sys/class/net/

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Oshadha Gunawardena

 Please stop top posting or you will get ignored.  Also, trim the posts
 to what is needed.

 Are you saying that 'ps -e|grep log' does not give syslogd and klogd?

 Lets also review the files in /etc/sysconfig/ and the contents of
 /etc/sysconfig/ifconfig*  and the links in  /sys/class/net/

-- Bruce

 Sorry I'm having bit of a trouble with Gmail.

As for the details can I run ps -e|grep log from chroot environment? I
did it and a single process is running -rsyslogd

root:/etc# ps -e|grep log
1949 ?00:00:00 rsyslogd

root:~# ls -l /etc/sysconfig/
total 32
-rw-r--r-- 1 root root  186 Feb 17 10:56 clock
-rw-r--r-- 1 root root  111 Feb 17 11:13 console
-rw-r--r-- 1 root root 1072 Feb 17 10:36 createfiles
-rw-r--r-- 1 root root   77 Feb 18 20:06 ifconfig.eth0
-rw-r--r-- 1 root root  559 Feb 17 10:36 modules
-rw-r--r-- 1 root root   25 Feb 17 10:55 network
-rw-r--r-- 1 root root 2394 Feb 20 20:37 rc.site
-rw-r--r-- 1 root root  679 Feb 17 10:36 udev_retry

root:~# cat /etc/sysconfig/ifconfig.eth0
ONBOOT=yes
IFACE=eth0
SERVICE=dhcpcd
DHCP_START=-b -q
DHCP_STOP=-k

root:~# ls -l /sys/class/net/
total 0
lrwxrwxrwx 1 root root 0 Feb 20 20:44 eth0 -
../../devices/pci:00/:00:19.0/net/eth0
lrwxrwxrwx 1 root root 0 Feb 20 20:43 lo - ../../devices/virtual/net/lo


Many thanks,
Oshadha.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Pierre Labastie
Le 20/02/2014 18:04, Oshadha Gunawardena a écrit :

root:/# cat /etc/inittab
# Begin /etc/inittab
id:3:initdefault:
si::sysinit:/etc/rc.d/init.d/rc S
l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
su:S016:once:/sbin/sulogin
1:2345:respawn:/sbin/agetty
2:2345:respawn:/sbin/agetty
3:2345:respawn:/sbin/agetty
4:2345:respawn:/sbin/agetty
5:2345:respawn:/sbin/agetty
6:2345:respawn:/sbin/agetty
--noclear tty1 9600
tty2 9600
tty3 9600
tty4 9600
tty5 9600
tty6 9600
# End /etc/inittab

It may happen that the mailer has broken lines, but the end
of the above file is weird. It should be:

1:2345:respawn:/sbin/agetty --noclear tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600

Do not know exactly how it would interact with the boot process.

Pierre

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] DHCPCD not starting when booting up

2014-02-20 Thread Bruce Dubbs
Oshadha Gunawardena wrote:

 root:/etc# ps -e|grep log
 1949 ?00:00:00 rsyslogd

That's not a part of LFS.  What deviations from the book have you made? 
  You should have both syslogd and klogd.

 root:~# ls -l /etc/sysconfig/
 total 32
 -rw-r--r-- 1 root root  186 Feb 17 10:56 clock
 -rw-r--r-- 1 root root  111 Feb 17 11:13 console
 -rw-r--r-- 1 root root 1072 Feb 17 10:36 createfiles
 -rw-r--r-- 1 root root   77 Feb 18 20:06 ifconfig.eth0
 -rw-r--r-- 1 root root  559 Feb 17 10:36 modules
 -rw-r--r-- 1 root root   25 Feb 17 10:55 network
 -rw-r--r-- 1 root root 2394 Feb 20 20:37 rc.site
 -rw-r--r-- 1 root root  679 Feb 17 10:36 udev_retry

Looks OK.

 root:~# cat /etc/sysconfig/ifconfig.eth0
 ONBOOT=yes
 IFACE=eth0
 SERVICE=dhcpcd
 DHCP_START=-b -q
 DHCP_STOP=-k

Looks OK.

 root:~# ls -l /sys/class/net/
 total 0
 lrwxrwxrwx 1 root root 0 Feb 20 20:44 eth0
 lrwxrwxrwx 1 root root 0 Feb 20 20:43 lo

Looks OK.

What is the output from 'ls /etc/rc.d/rc3.d'?

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Exotic lfs compiling question

2014-02-20 Thread Ken Moffat
On Thu, Feb 20, 2014 at 04:49:29PM +0100, loki wrote:
 
 Kernel is 2.6.35.3.
 

 For the future, you _might_ want to think about using a
long-term-supported stable kernel (at the moment, 3.10), or even
updating your kernel once or twice a year.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] init script question

2014-02-20 Thread joel kammet
I've been wondering about the case statement in S00mountvirtfs that mounts the 
virtual filesystems.


  if ! mountpoint /run /dev/null; then
 mount /run || failed=1

and similar commands for proc sys and dev.


I understand what the mountpoint lines are doing, but mount /run puzzles me.


There are no fstab entries for these filesystems, so I would expect mount 
[device] [mountpoint].


Why does that command work without the [device] parameter?

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] init script question

2014-02-20 Thread Armin K.
On 02/21/2014 01:35 AM, joel kammet wrote:
 I've been wondering about the case statement in S00mountvirtfs that mounts 
 the virtual filesystems.
 
 
   if ! mountpoint /run /dev/null; then
  mount /run || failed=1
 
 and similar commands for proc sys and dev.
 
 
 I understand what the mountpoint lines are doing, but mount /run puzzles me.
 
 
 There are no fstab entries for these filesystems, so I would expect mount 
 [device] [mountpoint].


There are.

http://www.linuxfromscratch.org/lfs/view/development/chapter08/fstab.html

tmpfs  /run tmpfsdefaults0 0

 
 Why does that command work without the [device] parameter?
 


-- 
Note: My last name is not Krejzi.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] init script question

2014-02-20 Thread joel kammet
 I understand what the mountpoint lines are doing, but mount /run puzzles 
 me.

 
 
 There are no fstab entries for these filesystems, so I would expect mount 
 [device]
 [mountpoint].


 There are.
 http://www.linuxfromscratch.org/lfs/view/development/chapter08/fstab.html

 tmpfs          /run         tmpfs    defaults            0     0

Thanks.  Should've occurred to me to read ahead.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page