public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: "André Glücksmann" <email@smixx.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] Skipping root filesystem check
Date: Thu, 12 Jul 2007 12:24:07 +0200	[thread overview]
Message-ID: <46960147.2080403@smixx.de> (raw)
In-Reply-To: <200707120959.59479.dirk.heinrichs.ext@nsn.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Dirk Heinrichs wrote:
> Am Donnerstag, 12. Juli 2007 schrieb ext Eckard Brauer:
> 
>> Die "sichere" Variante der awk-Zeile wäre aber in etwa:
>>
>> awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 == "/" && NF == 6 && int($6))'
>> /etc/fstab
>>
>> da mit der jetzigen Variante im 6. Feld auch eine beliebige
>> nichtnumerische Zeichenfolge (z.B. "no") akzeptiert werden würde. Den
>> expliziten Test "!= 0" und das Kommando "{ print }" kann man weglassen,
>> da default.
> 
> Darum geht's aber gar nicht. Die Zeile findet sich so bei mir und Emil 
> in /etc/init.d/checkroot (aus baselayout) und funktioniert. Die Frage ist, 
> ob sie bei André auch so vorhanden ist und falls nicht, ob daher sein 
> Problem kommen könnte.
> 
> Bye...
> 
> 	Dirk

Hallo Dirk, hallo Emil, hallo Zuhörer...

Also bei mir sieht das ganze so aus:

if [[ -n $(awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 == "/" \
                   && NF == 6 && $6 != 0) { print }' /etc/fstab) ]]
then
  ebegin "Checking root filesystem"
  fsck -C -T -a /
  retval=$?
else
  ebegin "Skipping root filesystem check (fstab's passno == 0)"
  retval=0
fi

Wenn ihr micht fragt sieht das so aus wie bei euch.

 # eix baselayout
[I] sys-apps/baselayout
     Available versions:  1.11.15-r3 1.12.9-r2 ~1.12.10-r3 ~1.12.10-r4
[M]~1.13.0_alpha12 [M]~2.0.0_alpha1 [M]~2.0.0_alpha2 [M]~2.0.0_alpha2-r1
[M]~2.0.0_alpha3 [M]~2.0.0_alpha3-r1
     Installed versions:  1.12.9-r2(21:10:34 10.05.2007)(-bootstrap
- -build -static unicode)

Wenn ich deine Zeile:

> awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 == "/" && NF == 6 && $6 != 0) \
{print }' /etc/fstab

in der Shell ausführe, bekomme ich keine Ausgabe.

Gruß
André

- --
André Glücksmann
email@smixx.de - GnuPG Key-ID: 0x1489FF7D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlgFGeWPEmRSJ/30RA+8oAJ9mFN4j1wnJYjzFW1+EMcp9fru2twCdFWKL
eym/gspbzW9r+Z6wTrxUswI=
=5nLb
-----END PGP SIGNATURE-----
-- 
gentoo-user-de@gentoo.org mailing list



  reply	other threads:[~2007-07-12 10:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-11 16:32 [gentoo-user-de] Skipping root filesystem check André Glücksmann
2007-07-11 16:53 ` Emil Beinroth
2007-07-11 16:55 ` Dirk Heinrichs
2007-07-11 17:12   ` André Glücksmann
2007-07-11 17:23     ` Dirk Heinrichs
2007-07-11 18:32       ` André Glücksmann
2007-07-11 20:35         ` Dirk Heinrichs
2007-07-11 20:36         ` Emil Beinroth
2007-07-12  7:43           ` Eckard Brauer
2007-07-12  7:59             ` Dirk Heinrichs
2007-07-12 10:24               ` André Glücksmann [this message]
2007-07-12 11:42                 ` Dirk Heinrichs
2007-07-12 11:52                 ` Emil Beinroth
2007-07-12 11:56                   ` André Glücksmann
2007-07-12 12:37                     ` Dirk Heinrichs
2007-07-12 12:54                       ` André Glücksmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46960147.2080403@smixx.de \
    --to=email@smixx.de \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox