From: Arseny Maslennikov <arseny@altlinux.org> To: make-initrd@lists.altlinux.org Subject: [make-initrd] boot with rootfs on a btrfs subvolume Date: Tue, 4 May 2021 19:53:46 +0300 Message-ID: <YJF8GhSbKoM/DG/f@cello> (raw) [-- 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 --]
next reply other threads:[~2021-05-04 16:53 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-04 16:53 Arseny Maslennikov [this message] 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
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=YJF8GhSbKoM/DG/f@cello \ --to=arseny@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