ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Михаил Радюк" <torabora08@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Бездисковый клиент: не применяется patch0.iso
Date: Mon, 30 Sep 2013 09:55:20 +0400
Message-ID: <CAH5o5+FL4mN=ANGiWVKUoOa4Cy=6M9-_0Kkwa_BZadZCa1Y4KQ@mail.gmail.com> (raw)
In-Reply-To: <20130927065717.GB27748@imap.altlinux.org>

Большое спасибо, Георгий!
Только сегодня добрался до работы и проверил - со скриптом патчи применяются.

27 сентября 2013 г., 10:57 пользователь George V. Kouryachy
<george@altlinux.org> написал:
> On Mon, Sep 23, 2013 at 04:27:55PM +0400, Михаил Радюк wrote:
>> Всем доброго дня!
>> Не могу добиться применения файла-заплатки из /srv/public/netinst/overlays-live
> Ошибка локализована, после того, как будет собран новый
> make-initrd-propagator, она исправится.
>
> Временный фикс состоит в подхакивании full.cz вот таким скриптом:
> ------ 8< --------------------
> #!/bin/sh
>
> ALT0=/var/lib/tftpboot/syslinux/alt0
> test -r "$ALT0/full.cz.orig" || cp -a "$ALT0/full.cz" "$ALT0/full.cz.orig"
> gzip -d < "$ALT0/full.cz.orig" > /tmp/full
> sed 's|&> /dev/null| > /dev/null|' < /tmp/full > /tmp/fullN
> gzip < /tmp/fullN > "$ALT0/full.cz"
> ------ >8 --------------------
>
> Поясняю: монтирование заплаток заскриптовано так:
> if nfsmount -o nolock откуда куда &> /dev/null ; then
> ...
>         find куда -name "$profile*.iso" | и смонтировать
> ...
>
> Ну так вот "&>" (перенаправление и stdout и stderr) -- не только башизм,
> но ещё и башизм, не вызывающий у /bin/ash синтаксической ошибки! Вместо
> этого mount просто запускается в фоне и последующий find ничего не
> находит, пока mount не сработает :(.
>
> На всякий случай скрипт бэкапит исходный full.cz
>
> --
>                                   Георгий Владимирович Курячий
>                                   Эксперт компании "Альт Линукс"
>                                   Mailto/JID: george@altlinux.org
>                                   Mobile: (8)9161738325
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



-- 
С уважением, Михаил.

      reply	other threads:[~2013-09-30  5:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23 12:27 Михаил Радюк
2013-09-24 11:27 ` George V. Kouryachy
2013-09-27  6:57 ` George V. Kouryachy
2013-09-30  5:55   ` Михаил Радюк [this message]

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='CAH5o5+FL4mN=ANGiWVKUoOa4Cy=6M9-_0Kkwa_BZadZCa1Y4KQ@mail.gmail.com' \
    --to=torabora08@gmail.com \
    --cc=community@lists.altlinux.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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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