ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Cc: devel@altlinux.ru
Subject: [devel] Re: Fwd: [Bug 3318] New: При установке любого ядра не прописывается соотвествующая секция в меню grub
Date: Wed, 26 Nov 2003 15:12:26 +0300
Message-ID: <20031126121226.GT2377@julia.office.altlinux.ru> (raw)
In-Reply-To: <3FC4938B.1060609@altlinux.com>

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

On Wed, Nov 26, 2003 at 02:50:35PM +0300, Anton Farygin wrote:
> >@@ -154,7 +187,7 @@ sub get_boot_partitions {
> >     local *F;
> >     open F, '/etc/fstab';
> >     while (<F>) {
> >-       next if /^#/;
> >+       s/#.*//;
> >        my @s = split ' ';
> >        $part = $s[0] if $s[1] =~ m|/$| and not $part;
> >        if ($s[1] =~ m|/boot$|) {
> >
> >hackish
> 
> Мда... мне кажется, что я даже знаю - зачем это они сделали ... ;-)

А вообще, комментарий в /etc/fstab может быть только в начале строки,
или в любом месте?  чтение man getmntent, fstab, mount меня не
просветлило.  Кроме того, этот код не учитывает noauto.

Без четкой постановки задачи здесь нельзя написать корректный код.
Здесь по натуре требутеся "угадывание".

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-11-26 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 14:53         ` [devel] Re: [d-kernel] " Dmitry V. Levin
2003-11-25 19:03           ` [devel] " Alexey Tourbin
2003-11-26 13:00             ` Anton Farygin
2003-11-26 13:01           ` [devel] Re: [d-kernel] " Anton Farygin
2003-11-26 12:12           ` Alexey Tourbin [this message]
2003-11-26 12:27             ` Anton Farygin
2003-11-26 12:34               ` Sergey Vlasov
2003-11-26 13:03                 ` Anton Farygin
2003-11-26 13:03                   ` [devel] Re: fstab parser Dmitry V. Levin

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=20031126121226.GT2377@julia.office.altlinux.ru \
    --to=at@altlinux.ru \
    --cc=devel-kernel@altlinux.ru \
    --cc=devel@altlinux.ru \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git