Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44343 - /etc/init.d/checkfs for me is wrong
Summary: /etc/init.d/checkfs for me is wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 04:38 UTC by Antonio
Modified: 2004-07-27 06:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio 2004-03-11 04:38:47 UTC
.............
........
# LVM support for /usr, /home, /opt ....
        # This should be done *before* checking local
        # volumes, or they never get checked.

        # NOTE: Add needed modules for LVM or RAID, etc
        #       to /etc/modules.autoload if needed

        if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
           [ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
        then
                ebegin "Setting up the Logical Volume Manager"
                #still echo stderr for debugging
                /sbin/vgscan >/dev/null
                if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
                   [ -f /etc/lvmtab -o -d /etc/lvm ]
                then
                        /sbin/vgchange -a y >/dev/null
                fi
                eend $? "Failed to setup the LVM"
        fi
.......
..............

On boot the system lvm not really start for me because this line is wrong:

if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
                   [ -f /etc/lvmtab -o -d /etc/lvm ]

file /etc/lvmtab exist but directory /etc/lvm not exist

vgscan produce file /etc/lvmtab and directory /etc/lvmtab.d


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Antonio 2004-03-11 04:40:43 UTC
For me the correct line is:

..........
.......
if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
                   [ -f /etc/lvmtab -o -d /etc/lvmtab.d ]
..........
...............
Comment 2 Antonio 2004-04-09 13:38:30 UTC
This patch is necessary if in the system i emerge lvm-user.
With lvm2 is correct this:

if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
                   [ -f /etc/lvmtab -o -d /etc/lvm ]

It is possible merge the correct scripts for lvm-user and lvm2 ?
Comment 3 Antonio 2004-07-27 06:33:49 UTC
Ok Close this BUG.