Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90603 - checkroot doesn't check root partition if I use LABEL or UUID on fstab
Summary: checkroot doesn't check root partition if I use LABEL or UUID on fstab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 04:10 UTC by Alessandro Sappia
Modified: 2005-05-14 13:35 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 Alessandro Sappia 2005-04-27 04:10:16 UTC
 
Comment 1 Alessandro Sappia 2005-04-27 04:12:16 UTC
I've seen that checkroot doesn't check root fs if 
fstab has a line like 
LABEL=root      /               xfs             defaults,noatime,async  1 1
or
UUID=.... 

fix is trivial:

$ diff -au checkroot checkroot.new
--- checkroot   2005-04-27 13:05:05.834486072 +0200
+++ checkroot.new       2005-04-27 13:04:41.405199888 +0200
@@ -27,7 +27,7 @@
                                # - find the / entry
                                # - make sure we have 6 fields
                                # - see if fs_passno is something other than 0
-                               if [[ -n $(awk '($1 ~ /^\// && $2 == "/" \
+                               if [[ -n $(awk '($1 ~ /^\/|^LABEL|^UUID/ && $2 == "/" \
                                                && NF == 6 && $6 != 0) { print }' /etc/fstab) ]]
                                then
                                        ebegin "Checking root filesystem"
Comment 2 SpanKY gentoo-dev 2005-05-14 13:35:26 UTC
added to cvs, will be in baselayout 1.11.12

thanks !