Project

General

Profile

Actions

Debian-replace-root » History » Revision 3

« Previous | Revision 3/28 (diff) | Next »
Андрей Волков, 2024-06-01 14:14


Debian-replace-root

Подготовка

Устанавливаем необходимое

apt-get install lsof psmisc

Останавливаем все важное

systemctl
systemctl stop docker.socket docker.service

Отключаем swap

swapon -s
systemctl stop ...

Создаём точки монтирования

mkdir /mnt/newroot
mount /dev/system/root /mnt/newroot
mkdir /mnt/newroot/mnt/oldroot

Переводим видимость / в private

findmnt -o TARGET,PROPAGATION /
findmnt -o TARGET,PROPAGATION

mount --make-rprivate /
findmnt -o TARGET,PROPAGATION /

Updated by Андрей Волков almost 2 years ago · 28 revisions