* [sisyphus] mkimage inside systemd-nspawn and hardlinks @ 2016-01-14 8:58 Eugene Prokopiev 2016-01-14 10:41 ` Michael Shigorin 0 siblings, 1 reply; 5+ messages in thread From: Eugene Prokopiev @ 2016-01-14 8:58 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Cc: Шигорин Михаил Здравствуйте! Хочется использовать mkimage внутри systemd-nspawn, однако последний совершенно (насколько я понял) не умеет fs.protected_hardlinks = 0. Можно ли как-нибудь mkimage научить использовать в этом случае копии? 2 mike@: кажется у тебя был даже патч на эту тему? -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] mkimage inside systemd-nspawn and hardlinks 2016-01-14 8:58 [sisyphus] mkimage inside systemd-nspawn and hardlinks Eugene Prokopiev @ 2016-01-14 10:41 ` Michael Shigorin 2016-01-14 11:03 ` Alexey Gladkov 2016-01-15 5:41 ` Eugene Prokopiev 0 siblings, 2 replies; 5+ messages in thread From: Michael Shigorin @ 2016-01-14 10:41 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Thu, Jan 14, 2016 at 11:58:21AM +0300, Eugene Prokopiev wrote: > Хочется использовать mkimage внутри systemd-nspawn, однако последний > совершенно (насколько я понял) не умеет fs.protected_hardlinks = 0. > Можно ли как-нибудь mkimage научить использовать в этом случае копии? Можно. > 2 mike@: кажется у тебя был даже патч на эту тему? Был, но что-то я его найти нигде не могу, в т.ч. в почте. Смысл в том, чтоб заменить cp -l на просто cp или вообще (если тебе надо "на вчера"), или в случае облома теста (такой патч я действительно делал, но legion@ высказался сильно против него по причине резкого -- порой в разы -- роста ресурсоёмкости и я согласился, что для выпекания образов разумней вывалиться и объяснить, как настроить систему). Если хочешь, отгружу архив своего mkimage.git со всеми ветками -- вдруг ты там что-то найдёшь (но это точно не FAIL-no-hardlinks, которое про mki-copy-efiboot). А у тебя действительно есть лишние гигазы tmpfs на прокорм "особенностей" systemd-*? -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] mkimage inside systemd-nspawn and hardlinks 2016-01-14 10:41 ` Michael Shigorin @ 2016-01-14 11:03 ` Alexey Gladkov 2016-01-14 16:54 ` Michael Shigorin 2016-01-15 5:41 ` Eugene Prokopiev 1 sibling, 1 reply; 5+ messages in thread From: Alexey Gladkov @ 2016-01-14 11:03 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Thu, Jan 14, 2016 at 01:41:45PM +0300, Michael Shigorin wrote: > On Thu, Jan 14, 2016 at 11:58:21AM +0300, Eugene Prokopiev wrote: > > Хочется использовать mkimage внутри systemd-nspawn, однако последний > > совершенно (насколько я понял) не умеет fs.protected_hardlinks = 0. > > Можно ли как-нибудь mkimage научить использовать в этом случае копии? > > Можно. Миш, давай лучше сделаем ключ или переменную окружения, чтобы можно было отключить линки. Для примитивных образов копирование будет не так критично. > > 2 mike@: кажется у тебя был даже патч на эту тему? > > Был, но что-то я его найти нигде не могу, в т.ч. в почте. > > Смысл в том, чтоб заменить cp -l на просто cp или вообще > (если тебе надо "на вчера"), или в случае облома теста > (такой патч я действительно делал, но legion@ высказался > сильно против него по причине резкого -- порой в разы -- > роста ресурсоёмкости и я согласился, что для выпекания > образов разумней вывалиться и объяснить, как настроить > систему). Собственно следствий будет два: размер сборочной среды и время сборки. Оба параметра на больших образах сильно возрастут. -- Rgrds, legion ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] mkimage inside systemd-nspawn and hardlinks 2016-01-14 11:03 ` Alexey Gladkov @ 2016-01-14 16:54 ` Michael Shigorin 0 siblings, 0 replies; 5+ messages in thread From: Michael Shigorin @ 2016-01-14 16:54 UTC (permalink / raw) To: sisyphus On Thu, Jan 14, 2016 at 12:03:40PM +0100, Alexey Gladkov wrote: > > > Хочется использовать mkimage внутри systemd-nspawn, однако последний > > > совершенно (насколько я понял) не умеет fs.protected_hardlinks = 0. > > > Можно ли как-нибудь mkimage научить использовать в этом случае копии? > > Можно. > Миш, давай лучше сделаем ключ или переменную окружения, чтобы > можно было отключить линки. Для примитивных образов > копирование будет не так критично. Или так... предлагаю с вопросом переместиться назад в https://bugzilla.altlinux.org/show_bug.cgi?id=30351 -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] mkimage inside systemd-nspawn and hardlinks 2016-01-14 10:41 ` Michael Shigorin 2016-01-14 11:03 ` Alexey Gladkov @ 2016-01-15 5:41 ` Eugene Prokopiev 1 sibling, 0 replies; 5+ messages in thread From: Eugene Prokopiev @ 2016-01-15 5:41 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 14 января 2016 г., 13:41 пользователь Michael Shigorin <mike@altlinux.org> написал: > А у тебя действительно есть лишние гигазы tmpfs на прокорм > "особенностей" systemd-*? Так уж сложилось, что меня не интересуют образы больше гига размером (а скорее даже больше полугига), поэтому да, я согласен несколько переплатить за унификацию инструментов. -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-15 5:41 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-01-14 8:58 [sisyphus] mkimage inside systemd-nspawn and hardlinks Eugene Prokopiev 2016-01-14 10:41 ` Michael Shigorin 2016-01-14 11:03 ` Alexey Gladkov 2016-01-14 16:54 ` Michael Shigorin 2016-01-15 5:41 ` Eugene Prokopiev
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git