* [devel] /var/run и /var/lock @ 2014-06-26 6:58 Alexey Shabalin 2014-06-26 7:34 ` Sergey Y. Afonin 2014-06-26 19:23 ` Dmitry V. Levin 0 siblings, 2 replies; 10+ messages in thread From: Alexey Shabalin @ 2014-06-26 6:58 UTC (permalink / raw) To: ALT Linux Team development discussions День добрый. В новом systemd-214 при установке и при загрузке появляется ошибка как в https://bugzilla.altlinux.org/show_bug.cgi?id=30138 В принципе ничего страшного. связано с тем, что апстрим уже давно не использует mount -o bind для директорий /var/run и /var/lock, а использует простые симлинки. И нам тоже пора перейти на симлинки. Вот только как это сделать корректно при обновлении я придумать не могу. Есть мысли? -- Alexey Shabalin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-26 6:58 [devel] /var/run и /var/lock Alexey Shabalin @ 2014-06-26 7:34 ` Sergey Y. Afonin 2014-06-26 8:01 ` Alexey Shabalin 2014-06-26 19:23 ` Dmitry V. Levin 1 sibling, 1 reply; 10+ messages in thread From: Sergey Y. Afonin @ 2014-06-26 7:34 UTC (permalink / raw) To: devel On Thursday 26 June 2014, Alexey Shabalin wrote: > В принципе ничего страшного. связано с тем, что апстрим уже > давно не использует mount -o bind для директорий /var/run и > /var/lock, а использует простые симлинки. Симлинки куда !? Вроде же, был задел их на tmpfs выносить ? -- С уважением, Сергей Афонин asy@altlinux.ru ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-26 7:34 ` Sergey Y. Afonin @ 2014-06-26 8:01 ` Alexey Shabalin 0 siblings, 0 replies; 10+ messages in thread From: Alexey Shabalin @ 2014-06-26 8:01 UTC (permalink / raw) To: ALT Linux Team development discussions 26 июня 2014 г., 11:34 пользователь Sergey Y. Afonin написал: > On Thursday 26 June 2014, Alexey Shabalin wrote: > >> В принципе ничего страшного. связано с тем, что апстрим уже >> давно не использует mount -o bind для директорий /var/run и >> /var/lock, а использует простые симлинки. > > Симлинки куда !? Вроде же, был задел их на tmpfs выносить ? Сейчас: /run на runfs (tmpfs) /var/run смонтировано с -o bind на /run /var/lock смонтировано с -o bind на /run/lock А можно просто сделать симлинки, и не использовать mount -o bind /var/run -> /run /var/lock -> /run/lock И апстрим рекомендует именно такой подход. -- Alexey Shabalin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-26 6:58 [devel] /var/run и /var/lock Alexey Shabalin 2014-06-26 7:34 ` Sergey Y. Afonin @ 2014-06-26 19:23 ` Dmitry V. Levin 2014-06-27 11:05 ` Alexey Shabalin 1 sibling, 1 reply; 10+ messages in thread From: Dmitry V. Levin @ 2014-06-26 19:23 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 537 bytes --] On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: > День добрый. > В новом systemd-214 при установке и при загрузке появляется ошибка как в > https://bugzilla.altlinux.org/show_bug.cgi?id=30138 > > В принципе ничего страшного. связано с тем, что апстрим уже давно не > использует mount -o bind для директорий /var/run и /var/lock, а > использует простые симлинки. И нам тоже пора перейти на симлинки. > Вот только как это сделать корректно при обновлении я придумать не могу. А в чем сложность? -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-26 19:23 ` Dmitry V. Levin @ 2014-06-27 11:05 ` Alexey Shabalin 2014-06-27 11:08 ` Anton Farygin 2014-06-27 11:30 ` Dmitry V. Levin 0 siblings, 2 replies; 10+ messages in thread From: Alexey Shabalin @ 2014-06-27 11:05 UTC (permalink / raw) To: ALT Linux Team development discussions 26 июня 2014 г., 23:23 пользователь Dmitry V. Levin написал: > On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: >> День добрый. >> В новом systemd-214 при установке и при загрузке появляется ошибка как в >> https://bugzilla.altlinux.org/show_bug.cgi?id=30138 >> >> В принципе ничего страшного. связано с тем, что апстрим уже давно не >> использует mount -o bind для директорий /var/run и /var/lock, а >> использует простые симлинки. И нам тоже пора перейти на симлинки. >> Вот только как это сделать корректно при обновлении я придумать не могу. > > А в чем сложность? Примерные шаги, что надо сделать: - убрать директории /var/run,/var/lock из пакета filesystem (или заменить на симлинки? - тогда мне кажется что при установке будет ошибка) - основная сложность с миграцией. если /var/lock без проблем можно отмонтировать, удалить директорию и сделать симлинк, то с /var/run такое не получиться - обычна она занята(с systemd - точно). Или я не знаю способа. Значит либо оставить как есть для существующих инсталяций (желающие могут вручную это сделать загрузившись с livecd или т.п.) и симлинки использовать только в новых инсталяциях. -- Alexey Shabalin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-27 11:05 ` Alexey Shabalin @ 2014-06-27 11:08 ` Anton Farygin 2014-06-27 11:30 ` Dmitry V. Levin 1 sibling, 0 replies; 10+ messages in thread From: Anton Farygin @ 2014-06-27 11:08 UTC (permalink / raw) To: devel On 27.06.2014 15:05, Alexey Shabalin wrote: > 26 июня 2014 г., 23:23 пользователь Dmitry V. Levin написал: >> On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: >>> День добрый. >>> В новом systemd-214 при установке и при загрузке появляется ошибка как в >>> https://bugzilla.altlinux.org/show_bug.cgi?id=30138 >>> >>> В принципе ничего страшного. связано с тем, что апстрим уже давно не >>> использует mount -o bind для директорий /var/run и /var/lock, а >>> использует простые симлинки. И нам тоже пора перейти на симлинки. >>> Вот только как это сделать корректно при обновлении я придумать не могу. >> >> А в чем сложность? > > Примерные шаги, что надо сделать: > - убрать директории /var/run,/var/lock из пакета filesystem (или > заменить на симлинки? - тогда мне кажется что при установке будет > ошибка) > > - основная сложность с миграцией. если /var/lock без проблем можно > отмонтировать, удалить директорию и сделать симлинк, то с /var/run > такое не получиться - обычна она занята(с systemd - точно). Или я не > знаю способа. > Значит либо оставить как есть для существующих инсталяций (желающие > могут вручную это сделать загрузившись с livecd или т.п.) и симлинки > использовать только в новых инсталяциях. Надо делать миграцию в процессе загрузки. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-27 11:05 ` Alexey Shabalin 2014-06-27 11:08 ` Anton Farygin @ 2014-06-27 11:30 ` Dmitry V. Levin 2014-06-27 12:11 ` Alexey Shabalin 1 sibling, 1 reply; 10+ messages in thread From: Dmitry V. Levin @ 2014-06-27 11:30 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 1663 bytes --] On Fri, Jun 27, 2014 at 03:05:03PM +0400, Alexey Shabalin wrote: > 26 июня 2014 г., 23:23 пользователь Dmitry V. Levin написал: > > On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: > >> День добрый. > >> В новом systemd-214 при установке и при загрузке появляется ошибка как в > >> https://bugzilla.altlinux.org/show_bug.cgi?id=30138 > >> > >> В принципе ничего страшного. связано с тем, что апстрим уже давно не > >> использует mount -o bind для директорий /var/run и /var/lock, а > >> использует простые симлинки. И нам тоже пора перейти на симлинки. > >> Вот только как это сделать корректно при обновлении я придумать не могу. > > > > А в чем сложность? > > Примерные шаги, что надо сделать: > - убрать директории /var/run,/var/lock из пакета filesystem Это просто. > (или заменить на симлинки? - тогда мне кажется что при установке будет > ошибка) Паковать симлинки вместо каталогов? Только в виде %ghost. > - основная сложность с миграцией. если /var/lock без проблем можно > отмонтировать, удалить директорию и сделать симлинк, то с /var/run > такое не получиться - обычна она занята(с systemd - точно). Или я не > знаю способа. В живой системе лучше ничего не размонтировать (хотя с помощью MNT_DETACH и прочих хитростей это можно было бы устроить) и не мигрировать. При старте системы это все можно было бы сделать гораздо проще. А зачем, кстати, systemd понадобился /var/run? > Значит либо оставить как есть для существующих инсталяций (желающие > могут вручную это сделать загрузившись с livecd или т.п.) и симлинки > использовать только в новых инсталяциях. Как вариант. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-27 11:30 ` Dmitry V. Levin @ 2014-06-27 12:11 ` Alexey Shabalin 2014-06-27 12:17 ` Anton Farygin 2014-06-27 12:21 ` Dmitry V. Levin 0 siblings, 2 replies; 10+ messages in thread From: Alexey Shabalin @ 2014-06-27 12:11 UTC (permalink / raw) To: ALT Linux Team development discussions 27 июня 2014 г., 15:30 пользователь Dmitry V. Levin написал: > On Fri, Jun 27, 2014 at 03:05:03PM +0400, Alexey Shabalin wrote: >> 26 июня 2014 г., 23:23 пользователь Dmitry V. Levin написал: >> > On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: >> >> День добрый. >> >> В новом systemd-214 при установке и при загрузке появляется ошибка как в >> >> https://bugzilla.altlinux.org/show_bug.cgi?id=30138 >> >> >> >> В принципе ничего страшного. связано с тем, что апстрим уже давно не >> >> использует mount -o bind для директорий /var/run и /var/lock, а >> >> использует простые симлинки. И нам тоже пора перейти на симлинки. >> >> Вот только как это сделать корректно при обновлении я придумать не могу. >> > >> > А в чем сложность? >> >> Примерные шаги, что надо сделать: >> - убрать директории /var/run,/var/lock из пакета filesystem > > Это просто. > >> (или заменить на симлинки? - тогда мне кажется что при установке будет >> ошибка) > > Паковать симлинки вместо каталогов? Только в виде %ghost. > >> - основная сложность с миграцией. если /var/lock без проблем можно >> отмонтировать, удалить директорию и сделать симлинк, то с /var/run >> такое не получиться - обычна она занята(с systemd - точно). Или я не >> знаю способа. > > В живой системе лучше ничего не размонтировать (хотя с помощью MNT_DETACH > и прочих хитростей это можно было бы устроить) и не мигрировать. > При старте системы это все можно было бы сделать гораздо проще. > > А зачем, кстати, systemd понадобился /var/run? Не то что /var/run нужен самому systemd. Просто мы глобально для всех сервисов не переходили на использование /run вместо /var/run. И где может выстрелить я не знаю. >> Значит либо оставить как есть для существующих инсталяций (желающие >> могут вручную это сделать загрузившись с livecd или т.п.) и симлинки >> использовать только в новых инсталяциях. > > Как вариант. -- Alexey Shabalin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-27 12:11 ` Alexey Shabalin @ 2014-06-27 12:17 ` Anton Farygin 2014-06-27 12:21 ` Dmitry V. Levin 1 sibling, 0 replies; 10+ messages in thread From: Anton Farygin @ 2014-06-27 12:17 UTC (permalink / raw) To: devel On 27.06.2014 16:11, Alexey Shabalin wrote: >>> - основная сложность с миграцией. если /var/lock без проблем можно >>> >>отмонтировать, удалить директорию и сделать симлинк, то с /var/run >>> >>такое не получиться - обычна она занята(с systemd - точно). Или я не >>> >>знаю способа. >> > >> >В живой системе лучше ничего не размонтировать (хотя с помощью MNT_DETACH >> >и прочих хитростей это можно было бы устроить) и не мигрировать. >> >При старте системы это все можно было бы сделать гораздо проще. >> > >> >А зачем, кстати, systemd понадобился /var/run? > Не то что /var/run нужен самому systemd. Просто мы глобально для всех > сервисов не переходили на использование /run вместо /var/run. > И где может выстрелить я не знаю. Надо sysvinit тоже пропатчить на предмет создание симлинка /var/run на /run и ничего не поломается. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [devel] /var/run и /var/lock 2014-06-27 12:11 ` Alexey Shabalin 2014-06-27 12:17 ` Anton Farygin @ 2014-06-27 12:21 ` Dmitry V. Levin 1 sibling, 0 replies; 10+ messages in thread From: Dmitry V. Levin @ 2014-06-27 12:21 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 1974 bytes --] On Fri, Jun 27, 2014 at 04:11:21PM +0400, Alexey Shabalin wrote: > 27 июня 2014 г., 15:30 пользователь Dmitry V. Levin написал: > > On Fri, Jun 27, 2014 at 03:05:03PM +0400, Alexey Shabalin wrote: > >> 26 июня 2014 г., 23:23 пользователь Dmitry V. Levin написал: > >> > On Thu, Jun 26, 2014 at 10:58:34AM +0400, Alexey Shabalin wrote: > >> >> День добрый. > >> >> В новом systemd-214 при установке и при загрузке появляется ошибка как в > >> >> https://bugzilla.altlinux.org/show_bug.cgi?id=30138 > >> >> > >> >> В принципе ничего страшного. связано с тем, что апстрим уже давно не > >> >> использует mount -o bind для директорий /var/run и /var/lock, а > >> >> использует простые симлинки. И нам тоже пора перейти на симлинки. > >> >> Вот только как это сделать корректно при обновлении я придумать не могу. > >> > > >> > А в чем сложность? > >> > >> Примерные шаги, что надо сделать: > >> - убрать директории /var/run,/var/lock из пакета filesystem > > > > Это просто. > > > >> (или заменить на симлинки? - тогда мне кажется что при установке будет > >> ошибка) > > > > Паковать симлинки вместо каталогов? Только в виде %ghost. > > > >> - основная сложность с миграцией. если /var/lock без проблем можно > >> отмонтировать, удалить директорию и сделать симлинк, то с /var/run > >> такое не получиться - обычна она занята(с systemd - точно). Или я не > >> знаю способа. > > > > В живой системе лучше ничего не размонтировать (хотя с помощью MNT_DETACH > > и прочих хитростей это можно было бы устроить) и не мигрировать. > > При старте системы это все можно было бы сделать гораздо проще. > > > > А зачем, кстати, systemd понадобился /var/run? > > Не то что /var/run нужен самому systemd. Просто мы глобально для всех > сервисов не переходили на использование /run вместо /var/run. > И где может выстрелить я не знаю. Где угодно. Например, при перепаковке файлов из /var/run в /run они просто будут пропадать. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-27 12:21 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-06-26 6:58 [devel] /var/run и /var/lock Alexey Shabalin 2014-06-26 7:34 ` Sergey Y. Afonin 2014-06-26 8:01 ` Alexey Shabalin 2014-06-26 19:23 ` Dmitry V. Levin 2014-06-27 11:05 ` Alexey Shabalin 2014-06-27 11:08 ` Anton Farygin 2014-06-27 11:30 ` Dmitry V. Levin 2014-06-27 12:11 ` Alexey Shabalin 2014-06-27 12:17 ` Anton Farygin 2014-06-27 12:21 ` Dmitry V. Levin
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