Make-initrd development discussion
 help / color / mirror / Atom feed
From: "Антон Мидюков" <antohami@basealt.ru>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Резайц файловой системы при первом запуске
Date: Sat, 7 Mar 2020 19:34:57 +0700
Message-ID: <9aa983e8-a1a6-5477-e749-dca33ecb9b98@basealt.ru> (raw)
In-Reply-To: <20200307121232.kngwgpnrsrjeuirb@comp-core-i7-2640m-0182e6>

07.03.2020 19:12, Alexey Gladkov пишет:
> On Sat, Mar 07, 2020 at 12:29:13AM +0700, Антон Мидюков wrote:
>> Доброго времени суток!
>>
>> Хотел бы сделать фич-реквест, или хотя бы узнать целесообразно ли это делать
>> в initrd.
>>
>> Насколько я понимаю, в дистрибутивах с dracut есть такая возможность (ещё не
>> изучал, как это у них происходит), при первом запуске увеличивать размер
>> файловой системы корня на всё свободное место.
>>
>> Нам этого функционала очень сильно не хватает. И нужно его реализовывать.
> Я читал новость, что такое сделано в systemd. Я совершенно не понимаю
> зачем такое нужно и пока не планирую такое реализовывать.

Да, тоже сегодня прочитал. Но хотелось бы такое не только для systemd. 
Хоть в будущем. Раз такое есть в systemd, попробую его в деле.

Это необходимо для образов rootfs, которые записываются на флешку. При 
первом запуске корневой раздел расширяется на всё доступное место за 
корневым разделом. Удобно, не нужно делать запас свободного места в 
образе. Образ получается меньше, пишется быстрее.

Другое применение - образы виртуальных машин. До первого запуска 
увеличиваешь образ до нужного размера, и корневой раздел получает нужный 
размер при первом запуске.

-- 
С уважением, Антон Мидюков <antohami@basealt.ru>



  reply	other threads:[~2020-03-07 12:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06 17:29 Антон Мидюков
2020-03-06 20:30 ` Michael Shigorin
2020-03-06 22:45 ` Leonid Krivoshein
2020-03-07 12:12 ` Alexey Gladkov
2020-03-07 12:34   ` Антон Мидюков [this message]
2020-03-07 13:46     ` Alexey Gladkov

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=9aa983e8-a1a6-5477-e749-dca33ecb9b98@basealt.ru \
    --to=antohami@basealt.ru \
    --cc=make-initrd@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

Make-initrd development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
		make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
	public-inbox-index make-initrd

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


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