From: "Michael A. Kangin" <mak@complife.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] ну пожалуйста-пожалуйста-пожалуйста! :)
Date: Wed, 23 Sep 2020 16:21:39 +0200
Message-ID: <795082be-5024-536d-3f26-f0ff6325282a@complife.ru> (raw)
In-Reply-To: <4811418.jobW8qPuyK@yarilin>
On 8/27/20 8:09 PM, Gleb Kulikov wrote:
>>>> Попробуйте свою схему на свежих ядрах с overlayfs. Там было много
>>>> улучшений за прошедшее время, возможно, для ваших задач подойдёт.
>
> Нет, "прозрачная" работа с overlayfs невозможна:
Что-то вы странное утверждаете.
Вот, есть корень смонтированный по overlayfs, из кучи слоёв:
overlay on / type overlay
(rw,noatime,sync,lowerdir=/run/clb/clb-ramdisk/mount-points/.layer7:/run/clb/clb-ramdisk/mount-points/.layer6:/run/clb/clb-ramdisk/mount-points/.layer5:/run/clb/clb-ramdisk/mount-points/.layer4:/run/clb/clb-ramdisk/mount-points/.layer3:/run/clb/clb-ramdisk/mount-points/.layer2:/run/clb/clb-ramdisk/mount-points/.layer1,upperdir=/run/clb/clb-ramdisk/mount-points/.rw,workdir=/run/clb/clb-ramdisk/mount-points/.work)
Ядро: Linux rescue-extra 4.18.0-147.5.1.el8_1.centos.plus.x86_64 #1 SMP
Thu Feb 6 10:31:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 1. пробуем удалить файл, размещённый в r/o части: ошибка
[root@rescue-extra ~]# ls -l /etc/nsswitch.conf
-rw-r--r-- 1 root root 1516 Sep 27 2019 /etc/nsswitch.conf
[root@rescue-extra ~]# rm -f /etc/nsswitch.conf
[root@rescue-extra ~]# ls -l /etc/nsswitch.conf
ls: cannot access '/etc/nsswitch.conf': No such file or directory
Кроме того, "удалить" файл можно и вручную, создав в RW-слое нечто вроде
mknod -m 000 myfile.txt c 0 0
> 2. пробуем создать файл, размещённый в глубине иерархии: ошибка
[root@rescue-extra usr]# echo "test-test-test" >
/usr/lib/python3.6/site-packages/pip/_vendor/chardet/__pycache__/myfile
[root@rescue-extra usr]# sync
[root@rescue-extra usr]# cat
/usr/lib/python3.6/site-packages/pip/_vendor/chardet/__pycache__/myfile
test-test-test
>
> самое главное, 3. пробуем отредактировать файл, размещённый в r/o части:
> ошибка
[root@rescue-extra etc]# tail -5 /etc/bashrc
unset -f pathmunge
fi
fi
# vim:ts=4:sw=4
[root@rescue-extra etc]# echo "alias do_test='echo test'" >> /etc/bashrc
[root@rescue-extra etc]# tail -5 /etc/bashrc
fi
fi
# vim:ts=4:sw=4
alias do_test='echo test'
next prev parent reply other threads:[~2020-09-23 14:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-05 7:49 glebus
2020-08-05 8:06 ` Andrey Savchenko
2020-08-05 8:26 ` glebus
2020-08-05 17:30 ` Michael Shigorin
2020-08-06 4:45 ` glebus
2020-08-05 18:38 ` Andrey Savchenko
2020-08-06 4:51 ` glebus
2020-08-06 4:56 ` Anton Farygin
2020-08-06 5:26 ` glebus
2020-08-06 6:25 ` Anton Farygin
2020-08-06 6:55 ` glebus
2020-08-06 9:15 ` Andrey Savchenko
2020-08-27 18:09 ` Gleb Kulikov
2020-08-28 9:06 ` Anton V. Boyarshinov
2020-08-28 9:12 ` Anton V. Boyarshinov
2020-08-28 11:37 ` glebus
2020-09-23 14:21 ` Michael A. Kangin [this message]
2020-09-29 12:03 ` glebus
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=795082be-5024-536d-3f26-f0ff6325282a@complife.ru \
--to=mak@complife.ru \
--cc=sisyphus@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
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git