From: "Александр Шеметов" <shemetov-174@yandex.ru> To: Alexey Gladkov <gladkov.alexey@gmail.com> Cc: "make-initrd@lists.altlinux.org" <make-initrd@lists.altlinux.org> Subject: Re: [make-initrd] make-initrd Date: Tue, 21 Jan 2020 18:52:37 +0500 Message-ID: <6729421579614757@sas8-004ac07304b9.qloud-c.yandex.net> (raw) In-Reply-To: <20200118184440.77lcaiui4pmdiy36@comp-core-i7-2640m-0182e6> >> А из снятого образа уже развёрнутой ОС мне не удаётся запустить систему. >> Я проваливаюсь в rdshell и дальше ничего сделать не удаётся, >> подключить root не могу, так как каталог /dev/disk/ вообще отсутствует. Проблема решилась добавлением модуля ata_generic и ряда прочих. Полный список можно глянуть, загрузив обычную систему в rdshell. Соответственно добавляем модули в MODULES_PRELOAD += ... и пересобираем initrd. > Вы как минимум первый кто захотел это сделать в альтлинуксе. Значит будем копать дальше... :) Снова вернусь к ссылке http://www.opopop.net/booting_linux_from_a_loop_file_system/ Там предлагается использовать такой скрипт: #!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac modprobe -k ntfs mount -n -t ntfs -o nodiratime,noatime ${ROOT} ${rootmnt}2 modprobe -k loop mount -n -t ext2 -o loop ${rootmnt}2${loop} ${rootmnt} Насколько я могу понять, здесь прерывается штатный premount корня и вместо него монтируется как раз система из образа. На системах Base ALT в таком виде скрипт конечно же не работает. В связи с этим задам вопрос, так как пока дальше самостоятельно продвинуться не выходит, -- как можно прервать штатный premount и передать управление моему скрипту ? Сейчас в корень принудительно монтируется раздел NTFS, на котором лежит сам образ с системой. PS. Да, и вот это немного мешает тестам на p9 https://bugzilla.altlinux.org/show_bug.cgi?id=37254 Спасибо, что исправили. -- С уважением, Александр Шеметов
next prev parent reply other threads:[~2020-01-21 13:52 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-16 9:49 ` Alexey Gladkov 2020-01-18 10:11 ` Александр Шеметов 2020-01-18 11:33 ` Alexey Gladkov 2020-01-18 15:41 ` Александр Шеметов 2020-01-18 18:44 ` Alexey Gladkov 2020-01-21 13:52 ` Александр Шеметов [this message] 2020-01-22 15:32 ` Александр Шеметов 2020-01-23 6:37 ` Александр Шеметов
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=6729421579614757@sas8-004ac07304b9.qloud-c.yandex.net \ --to=shemetov-174@yandex.ru \ --cc=gladkov.alexey@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