Make-initrd development discussion
 help / color / mirror / Atom feed
From: Leonid Krivoshein <klark.devel@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Boot rootfs file from local device via pipeline
Date: Tue, 11 Jan 2022 00:46:56 +0300
Message-ID: <2665c4c7-d1a8-1b67-965e-4e7248f791c3@gmail.com> (raw)
In-Reply-To: <CANM4RuiA_mdH1jjmoC9AZQfsKa+sjKTxE1=_5FbS51mZsJZDNQ@mail.gmail.com>

Добрый день!


10.01.2022 22:02, Eugene Prokopiev пишет:
> Здравствуйте!
>
> Читаю https://github.com/osboot/make-initrd/tree/master/features/pipeline
> - очень интересно
>
> А если образ, который мне нужно загрузить, лежит не в сети, а на
> локальном разделе с меткой DATA или каким-то UUID - что тогда в
> cmdline написать?

Если не изменяет память, как-то так:

pipeline=waitdev,mountfs,mountfs,overlayfs,rootfs \
     waitdev=UUID=<uuid> \
     mountfs=dev \
     mountfs=pipe2/path/to/image.iso \
     ...

Вместо UUID= можно также использовать LABEL=, вот только как сейчас 
обрабатываются пробелы в LABEL, не помню.


> А перед этим локальный раздел, на котором лежит
> образ, нужно ведь еще как-то примонтировать?

Конечно: mountfs=dev


> А если у меня не iso-образ, а уже готовый корень в squashfs-образе

Сквош грузится так же, как и CD-ROM, mountfs без разницы, какую ФС 
монтировать.


> (сделанный с помощью mkimage и загружаемый с помощью propagator) - как
> его загрузить с помощью propagator?

Если грузить его при помощи propagator, тогда при чём тут pipeline?
pipeline -- это как раз альтернатива загрузки через propagator.


-- 
Best regards,
Leonid Krivoshein.



  reply	other threads:[~2022-01-10 21:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 19:02 Eugene Prokopiev
2022-01-10 21:46 ` Leonid Krivoshein [this message]
2022-01-10 21:57   ` Leonid Krivoshein
2022-01-11  3:53   ` Eugene Prokopiev
2022-01-11 12:04     ` Leonid Krivoshein

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=2665c4c7-d1a8-1b67-965e-4e7248f791c3@gmail.com \
    --to=klark.devel@gmail.com \
    --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