From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I8tMg-00033B-37 for garchives@archives.gentoo.org; Thu, 12 Jul 2007 07:45:30 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6C7hkAh018614; Thu, 12 Jul 2007 07:43:46 GMT Received: from mailgate.intershop.de (mailgate.intershop.de [217.17.202.241]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6C7hkTG018609 for ; Thu, 12 Jul 2007 07:43:46 GMT Received: from cobra.support.j.intershop.de ([10.0.56.103]) by mailgate.intershop.de (8.14.1/8.13.6) with ESMTP id l6C7hhHI025802 for ; Thu, 12 Jul 2007 09:43:44 +0200 From: Eckard Brauer Organization: Intershop Communications To: gentoo-user-de@lists.gentoo.org Subject: Re: [gentoo-user-de] Skipping root filesystem check Date: Thu, 12 Jul 2007 09:43:24 +0200 User-Agent: KMail/1.9.5 References: <4695061F.3060406@smixx.de> <46952235.9090803@smixx.de> <20070711203627.GA10404@stovokor.kiste.lan> In-Reply-To: <20070711203627.GA10404@stovokor.kiste.lan> X-Face: "?p>XzqH"=?utf-8?q?vts=5Cdr2=7Er3YvzB79=7DexMZu=5F=7E=25yC0=3D=27rrSvUnhs=2ELi=5D5?= =?utf-8?q?Ftt=5EA=5F6LQF!M7=3Dko/h=0A=09GRhE+=275?="F!*a}_ltcP Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-de@gentoo.org Reply-to: gentoo-user-de@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200707120943.24917.e.brauer@intershop.de> X-Archives-Salt: f83029a0-5f68-4bd1-997b-80800250565c X-Archives-Hash: c61ad998de58d3576e7a0d6cd8d93ad9 Hallo, Am Mittwoch, 11. Juli 2007 22:36 schrieb Emil Beinroth: > das ist ja wohl echt mal ein "magischer" Fehler .. allerdings. > Ich weiss nicht welches baselayout du hast, aber bei meinem (1.12.10-r4) > und dem x86-stable (1.12.9-r2) schaut das in der /etc/init.d/checkroot > so aus: > > # Obey the fs_passno setting for / (see fstab(5)) > # - find the / entry > # - make sure we have 6 fields > # - see if fs_passno is something other than 0 > if [[ -n $(awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 =3D=3D "/" \ > && NF =3D=3D 6 && $6 !=3D 0) { print }' /etc/fstab) ]] > then > ebegin "Checking root filesystem" > fsck -C -T -a / > retval=3D$? > else > ebegin "Skipping root filesystem check (fstab's passno =3D=3D 0)" > retval=3D0 > fi > > > Das Problem muss also wohl irgendwie mit dem awk zusammenh=C3=A4ngen. Evtl > schaust du einfach mal ob die checkroot bei dir auch so aussieht, und was > > awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 =3D=3D "/" && NF =3D=3D 6 && $6 != =3D 0) { > print }' /etc/fstab > > bei dir ausspuckt. Hab gerade mal auf mehreren verschiedenen Maschinen getestet (=C3=BCberall = gleiches=20 Resultat): ~ # cat fake_fstab /dev/sda3 / ext3 noatime 0 0 /dev/sda3 / ext3 noatime 0 1 UUID=3Dac31b6a8-d1c5-4133-8ae9-edddfda8572b / ext3 noatime 0 0 UUID=3Dac31b6a8-d1c5-4133-8ae9-edddfda8572b / ext3 noatime 0 1 ~ # awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 =3D=3D "/" && NF =3D=3D 6 && $6)' f= ake_fstab /dev/sda3 / ext3 noatime 0 1 UUID=3Dac31b6a8-d1c5-4133-8ae9-edddfda8572b / ext3 noatime 0 1 Die "sichere" Variante der awk-Zeile w=C3=A4re aber in etwa: awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 =3D=3D "/" && NF =3D=3D 6 && int($6))' = /etc/fstab da mit der jetzigen Variante im 6. Feld auch eine beliebige nichtnumerische= =20 Zeichenfolge (z.B. "no") akzeptiert werden w=C3=BCrde. Den expliziten Test = "!=3D 0"=20 und das Kommando "{ print }" kann man weglassen, da default. Viele Gr=C3=BC=C3=9Fe - Eckard -- gentoo-user-de@gentoo.org mailing list