Make-initrd development discussion
 help / color / mirror / Atom feed
From: Anton Midyukov <antohami@altlinux.org>
To: make-initrd@lists.altlinux.org
Subject: [make-initrd] Замена /var/run и /var/lock на симлинки, указываюшие на /run и /run/lock на стадии initrd
Date: Sun, 31 May 2026 16:54:56 +0300
Message-ID: <7abadb27-fa4e-4a3b-940d-1688f0b067ca@altlinux.org> (raw)

Доброго времени суток

Необходимость замены  /var/run и /var/lock на симлинки, указываюшие на /run и /run/lock
уже давно перезрела. Начиная с p9, все новые системы являются мигрировавшими при их установке.
Но остаются системы, обновлявшиеся с p8, какие-то самодельные сборки, где эта миграция не выполнялась.

Наверное, самый безопасный способ миграции таких систем - сделать это на этапе initrd.
В таком случае потребуется монтировать /var, если он на отдельном разделе.
А также потребуется монтировать систему на запись.
Видимо, это должна быть фича, которая добавляется в initrd автоматически, если /var/run или /var/lock
не являются симлинками.
Хотелось бы узнать, насколько это хорошая идея.

-- 
best regards, Anton Midyukov <antohami@altlinux.org>



                 reply	other threads:[~2026-05-31 13:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=7abadb27-fa4e-4a3b-940d-1688f0b067ca@altlinux.org \
    --to=antohami@altlinux.org \
    --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