Re: My FC33->FC34 bind-chroot upgrade notes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/06/2021 09:55, ToddAndMargo via users wrote:
Hmmmmm.  I screwed up pretty good.  I will do this again.

I believe you've made mistakes in other areas.

I believe you've added files, with named stopped in (for example) /var/named/chroot/etc.

This is a normal running named-chroot system.

[root@f33g etc]# ll -i /etc/named.root.key /var/named/chroot/etc/named.root.key
486885 -rw-r--r--. 1 root named 686 Jun  3 22:47 /etc/named.root.key
486885 -rw-r--r--. 1 root named 686 Jun  3 22:47 /var/named/chroot/etc/named.root.key

Notice they have the sam inode.  They are, the same file.

If I stop named-chroot then one sees this....

[root@f33g etc]# systemctl stop named-chroot

[root@f33g etc]# ll
total 0
drwxr-x---. 1 root named 18 Jun  3 22:46 crypto-policies
drwxr-x---. 1 root named  0 Jun  3 22:46 named
drwxr-x---. 1 root named 22 Jun  3 22:46 pki

I then copy the named.root.key from /etc into that directory and modify it to contain a "test" line.

[root@f33g etc]# cp /etc/named.root.key .
[root@f33g etc]# vi named.root.key
[root@f33g etc]# grep -i test named.root.key
        # Test

And you can see these are not different files.

[root@f33g etc]# ll -i /etc/named.root.key /var/named/chroot/etc/named.root.key
486885 -rw-r--r--. 1 root named 686 Jun  3 22:47 /etc/named.root.key
570722 -rw-r--r--. 1 root root  721 Jun 16 10:41 /var/named/chroot/etc/named.root.key

[root@f33g etc]# ll
total 708
drwxr-x---. 1 root named     18 Jun  3 22:46 crypto-policies
-rw-r--r--. 2 root root     761 Jan 26 10:35 localtime
drwxr-x---. 1 root named      0 Jun  3 22:47 named
-rw-r-----. 1 root named   2215 Jun 15 18:44 named.conf
-rw-r-----. 1 root named   1029 Jun  3 22:47 named.rfc1912.zones
-rw-r--r--. 1 root root     721 Jun 16 10:41 named.root.key
drwxr-x---. 1 root named     22 Jun  3 22:46 pki
-rw-r--r--. 1 root root    6568 Jun 23  2020 protocols
-rw-r-----. 1 root named    100 Apr 21 11:00 rndc.key
-rw-r--r--. 1 root root  692252 Jun 23  2020 services

But we still have

[root@f33g etc]# ll -i /etc/named.root.key /var/named/chroot/etc/named.root.key
486885 -rw-r--r--. 1 root named 686 Jun  3 22:47 /etc/named.root.key
570722 -rw-r--r--. 1 root root  721 Jun 16 10:41 /var/named/chroot/etc/named.root.key

Bottom line.  Unless one has a special reason for this they should not be adding files into
/var/named/chroot/etc/.  As they will not be superseded by files which are updated by the
dnf operation.  If you do manually add files, you should make a note of it and then if necessary
manually fix those files to take into account the upgraded files from the rpm.

--
Remind me to ignore comments which aren't germane to the thread.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux