From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>,
devel@altlinux.ru
Subject: Re: [devel] Re: [d-kernel] Re: Fwd: [Bug 3318] New: При установке любого ядра не прописывается соотвествующая секция в меню grub
Date: Wed, 26 Nov 2003 15:34:27 +0300
Message-ID: <20031126123427.GE1779@master.mivlgu.local> (raw)
In-Reply-To: <3FC49C26.2060402@altlinux.com>
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
On Wed, Nov 26, 2003 at 03:27:18PM +0300, Anton Farygin wrote:
> Alexey Tourbin wrote:
> >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.
> >
> >Без четкой постановки задачи здесь нельзя написать корректный код.
> >Здесь по натуре требутеся "угадывание".
>
> Нет, проще посмотреть на парсер в lilo и реализовать подобный.
А в lilo разве есть парсер fstab? Насколько я понимаю, там просто
открывается файл и делается bmap, чтобы найти устройство и блок (там ещё
сверху этого навороты для RAID/LVM/..., чтобы добраться до реального
устройства).
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-26 12:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-25 14:09 [d-kernel] " Alexey Tourbin
2003-11-25 14:16 ` Sergey Vlasov
2003-11-25 14:25 ` [d-kernel] " Alexey Tourbin
2003-11-25 14:36 ` Alexey Tourbin
2003-11-25 14:54 ` Anton Farygin
2003-11-25 18:51 ` Michael Shigorin
2003-11-26 11:44 ` Anton Farygin
2003-11-25 19:19 ` Alexey Tourbin
2003-11-26 11:50 ` Anton Farygin
2003-11-26 12:12 ` Alexey Tourbin
2003-11-26 12:27 ` Anton Farygin
2003-11-26 12:34 ` Sergey Vlasov [this message]
2003-11-26 13:03 ` [devel] " Anton Farygin
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=20031126123427.GE1779@master.mivlgu.local \
--to=vsu@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 kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git