Make-initrd development discussion
 help / color / mirror / Atom feed
* [make-initrd] boot with rootfs on a btrfs subvolume
@ 2021-05-04 16:53 Arseny Maslennikov
  2021-05-04 18:43 ` Alexey Gladkov
  0 siblings, 1 reply; 7+ messages in thread
From: Arseny Maslennikov @ 2021-05-04 16:53 UTC (permalink / raw)
  To: make-initrd

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

Дано:
    # ls -l /dev/disk/by-partlabel/protoroot
    lrwxrwxrwx 1 root root 15 May  4 18:41 /dev/disk/by-partlabel/protoroot -> ../../nvme0n1p2
    # mount /dev/disk/by-partlabel/protoroot -o subvol=/alt /mnt
    # btrfs subvolume get-default /mnt
    ID 671 gen 9498169 top level 5 path debian
    #
    # cat /mnt/etc/initrd.mk
    # trying to detect modules and features to access to root volume
    AUTODETECT = all
    MODULES_TRY_ADD += 
    FEATURES += plymouth btrfs

Мне надо, чтобы можно было загрузить альт с корнем на btrfs-подразделе.

У меня в /etc/fstab написано следующее:
    # cat /mnt/etc/fstab
    proc		/proc			proc	nosuid,noexec,gid=proc		0 0
    devpts		/dev/pts		devpts	nosuid,noexec,gid=tty,mode=620	0 0
    tmpfs		/tmp			tmpfs	nosuid				0 0
    UUID=a8c68183-f5bf-4623-86fe-41d9171b7c5f	/	auto	subvol=/alt,relatime	1	1
    UUID=a8c68183-f5bf-4623-86fe-41d9171b7c5f	/home	auto	subvol=/home/:alt,relatime	1	1
    PARTUUID=c08f5c6b-3fe3-4c94-ab53-4efd654b617d	/boot/efi	vfat	umask=0077,dmask=0077	0	1
После регенерации initramfs, её установки в загрузчик и перезагрузки
система грузится в правильный раздел, но с неправильными опциями
(монтирует подраздел по умолчанию).

# chroot /mnt                        
(chroot) root@cello / # rpm -qa make-initrd 
make-initrd-2.16.0-alt1.x86_64
(chroot) root@cello / # ^D

features/btrfs/README.md, man make-initrd ни на что не наставляют.
Как это побороть?

P.S. Я, правда, пока не пробовал задавать rootflags — но почему бы
make-initrd по умолчанию не взять их из fstab?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-16 16:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 16:53 [make-initrd] boot with rootfs on a btrfs subvolume Arseny Maslennikov
2021-05-04 18:43 ` Alexey Gladkov
2021-05-04 19:14   ` Arseny Maslennikov
2021-05-04 21:02     ` Alexey Gladkov
2021-05-04 21:59       ` Arseny Maslennikov
2021-05-05  8:43         ` Alexey Gladkov
2021-05-16 16:14       ` Alexey Gladkov

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