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:57:37 +0300 Message-ID: <3a9b7cb9-1b54-a7c6-e6bc-cb743b47b938@gmail.com> (raw) In-Reply-To: <2665c4c7-d1a8-1b67-965e-4e7248f791c3@gmail.com> 11.01.2022 0:46, Leonid Krivoshein пишет: > Добрый день! > > > 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 \ > ... > Нет, тут ещё третий mountfs нужен с именем сквош-файла. И во втором, возможно, следует опустить pipe2/. Первым монтируется устройство по UUID или LABEL. Вторым монтируется ISO-образ. Третьим сквош-файл. > Вместо UUID= можно также использовать LABEL=, вот только как сейчас > обрабатываются пробелы в LABEL, не помню. > > >> А перед этим локальный раздел, на котором лежит >> образ, нужно ведь еще как-то примонтировать? > > Конечно: mountfs=dev > Здесь dev означает устройство, смонтированное на предыдущем шаге. >> А если у меня не iso-образ, а уже готовый корень в squashfs-образе > > Сквош грузится так же, как и CD-ROM, mountfs без разницы, какую ФС > монтировать. > > >> (сделанный с помощью mkimage и загружаемый с помощью propagator) - как >> его загрузить с помощью propagator? > > Если грузить его при помощи propagator, тогда при чём тут pipeline? > pipeline -- это как раз альтернатива загрузки через propagator. > -- Best regards, Leonid Krivoshein.
next prev parent reply other threads:[~2022-01-10 21:57 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 2022-01-10 21:57 ` Leonid Krivoshein [this message] 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=3a9b7cb9-1b54-a7c6-e6bc-cb743b47b938@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