From bbf8db0397051580de08aec1f4f991b72dadc9c1 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Tue, 29 Jun 2021 22:41:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20rootfs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs_install.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rootfs_install.md diff --git a/rootfs_install.md b/rootfs_install.md new file mode 100644 index 0000000..c13a45e --- /dev/null +++ b/rootfs_install.md @@ -0,0 +1,23 @@ +# Установка rootfs + +Все команды от root +``` +alt-rootfs-installer --rootfs=file.tar --media=/dev/sdb +mkdir /tmp/sdb1 +mount /dev/sdb1 /tmp/sdb1 +grub-install --root-directory=/tmp/sdb1 /dev/sdb +``` + +Установить пароль пользователю root в новой системе +``` +chroot /tmp/sdb1 + passwd +``` + +Создать заготовку конфига GRUB +``` +grub-mkconfig -o /tmp/sdb1/boot/grub/grub.cfg +``` + +Исправить конфиг под новую систему (UUID заменить на то, что выдаст sudo blkid) +