[Lunar-bugs] [Lunar Linux 0000293]: /etc/init.d/mount from lunar-init does not check filesystems with fsck at boot

Lunar bug reports list lunar-bugs at lunar-linux.org
Sun Sep 30 18:12:27 CEST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.lunar-linux.org/view.php?id=293 
====================================================================== 
Reported By:                gb
Assigned To:                
====================================================================== 
Project:                    Lunar Linux
Issue ID:                   293
Category:                   module
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Moonbase Version:           20070929.17 
Core Tools:                 Lunar 
Core Tools Version:         20070623 
====================================================================== 
Date Submitted:             09-30-2007 15:41 CEST
Last Modified:              09-30-2007 18:12 CEST
====================================================================== 
Summary:                    /etc/init.d/mount from lunar-init does not check
filesystems with fsck at boot
Description: 
(arch: x86_64)

lunar-init: 20070926

At boot, I get this error from /etc/init.d/mount:

/etc/rcS.d/S10mount: line221: uniq: command not found

Attached please find my "mount" script.
Is it corrupt or an outdated version? I relined lunar-init many times,
but I always get the same files.

I also opened a topic on the Forum here:
http://forums.lunar-linux.org/viewtopic.php?t=496

BTW, running line 221 from the CLI after boot produces the right results.

Some time ago, I remember that a manual procedure for updating the init.d
files
was posted on the Lunar Linux Site homepage ("requires manual
intervention").
At the time I followed those instructions and everything seemed to work
fine.
I wonder if that could be the cause of my current problem.

====================================================================== 

---------------------------------------------------------------------- 
 adriandelatabla - 09-30-07 17:18  
---------------------------------------------------------------------- 
I had the same problem. This is because the uniq command is located in
/usr/bin, so if you have /usr in another partition than / the mount script
can't find it.
A simply workaround is to replace line 221 with this

FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | awk '($6>0){print$6}' | sort
-nu) 

but this is not optimal because you will have to be careful everytime you
update lunar-init module. 

---------------------------------------------------------------------- 
 engelsman - 09-30-07 18:12  
---------------------------------------------------------------------- 
http://wiki.lunar-linux.org/index.php/Lunar_Linux:Installation says:

"It is important to note that you can not mount the directories /etc,
/bin, /sbin, /dev, /lib and /proc on separate partitions. These
directories need to be contained within the root ("/") directory. The
installation program should block you from doing this, but it's best not
to try." 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-30-07 15:41  gb             New Issue                                    
09-30-07 15:41  gb             File Added: mount                            
09-30-07 15:41  gb             Moonbase Version          => 20070929.17     
09-30-07 15:41  gb             Core Tools                => Lunar           
09-30-07 15:41  gb             Core Tools Version        => 20070623        
09-30-07 15:42  gb             Issue Monitored: gb                          
09-30-07 17:18  adriandelatablaNote Added: 0000652                          
09-30-07 18:12  engelsman      Note Added: 0000653                          
======================================================================



More information about the Lunar-bugs mailing list