# echo p > /tmp/rd/etc/passwd
# echo g > /tmp/rd/etc/group
# echo s > /tmp/rd/etc/shadow
install to chroot when it first fails, then:
# poldek -r /tmp/rd/ -u setup; rpm -r /tmp/rd -q setup
Processing dependencies...
There are 1 package to install:
I setup-2.8.5-1.x86_64
This operation will use 758.4KB of disk space.
Need to get 208.7KB of archives.
Executing rpm --upgrade -vh --root /tmp/rd --define _check_dirname_deps 1...
Preparing... ########################################### [100%]
1:setup ########################################### [100%]
there's actually third problem too. target files which are marked %config noreplace [1] (passwd, group) are overwritten (but not shadow!):
[1] http:// git.pld- linux.org/ ?p=packages/ setup.git; a=blob; f=setup. spec;h= aee3d7136ce6508 9457055de8d025a 8d7fc34606; hb=c06b68d04ea3 1d59d6cb35d18b1 24d626695fe23# l160
# echo p > /tmp/rd/etc/passwd
# echo g > /tmp/rd/etc/group
# echo s > /tmp/rd/etc/shadow
install to chroot when it first fails, then: 8.5-1.x86_ 64 ####### ####### ####### ####### ####### # [100%] ####### ####### ####### ####### ####### # [100%]
# poldek -r /tmp/rd/ -u setup; rpm -r /tmp/rd -q setup
Processing dependencies...
There are 1 package to install:
I setup-2.
This operation will use 758.4KB of disk space.
Need to get 208.7KB of archives.
Executing rpm --upgrade -vh --root /tmp/rd --define _check_dirname_deps 1...
Preparing... #######
1:setup #######
# rpm -r /tmp/rd -V setup
# grep . /tmp/rd/ etc/{passwd, group,shadow} etc/passwd: root::0: 0:root: /root:/ bin/sh etc/passwd: bin:*:1: 1:bin:/ bin:/bin/ false etc/passwd: daemon: *:2:2:daemon: /sbin:/ bin/false etc/passwd: adm:*:3: 4:adm:/ var/account: /bin/false etc/passwd: sync:*: 5:0:sync: /sbin:/ bin/sync etc/passwd: shutdown: *:6:0:shutdown: /sbin:/ sbin/shutdown etc/passwd: halt:*: 7:0:halt: /sbin:/ sbin/halt etc/passwd: mail:*: 8:12:mail: /var/mail: /bin/false 9:13:news: /home/services/ news:/bin/ false etc/passwd: uucp:*: 10:14:uucp: /var/spool/ uucp:/bin/ false etc/passwd: operator: *:11:0: operator: /root:/ bin/false etc/passwd: games:* :12:20: games:/ usr/games: /bin/false 50:FTP User:/home/ services/ftp:/bin/ false 51:51:HTTP User:/home/ services/ httpd:/ bin/false etc/passwd: stats:* :123:123: Statistics generator user:/usr/ share/empty: /bin/false etc/passwd: nobody: *:99:99: Nobody: /usr/share/ empty:/ bin/false
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/etc/passwd:lp:*:4:7:lp:/var/spool/lpd:/bin/false
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/etc/passwd:news:*:
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/etc/passwd:ftp:*:14:
/tmp/rd/etc/passwd:http:*:
/tmp/rd/
/tmp/rd/
/tmp/rd/ etc/group: root::0: root etc/group: bin::1: root,bin, daemon etc/group: daemon: :2:root, bin,daemon etc/group: sys::3: root,bin, adm etc/group: adm::4: root,adm, daemon etc/group: tty::5: etc/group: disk::6: root etc/group: lp::7:daemon, lp etc/group: mem::8: etc/group: kmem::9: etc/group: wheel:: 10:root etc/group: icmp::11: etc/group: mail::12: mail etc/group: news::13: news etc/group: uucp::14: uucp,mail etc/group: man::15: etc/group: dialout: :16: etc/group: proc::17: etc/group: floppy: :19: etc/group: games:: 20: etc/group: slocate: :21: etc/group: utmp::22: etc/group: audio:: 23: etc/group: video:: 24: etc/group: cdrom:: 27: etc/group: fsctrl: :28: etc/group: console: :31: etc/group: backup: :39: etc/group: dip::40: etc/group: ftp::50: etc/group: http::51: etc/group: tape::68: etc/group: usb::78: etc/group: fuse::84: etc/group: nobody: :99: etc/group: stats:: 123: etc/group: logs::124: stats etc/group: fileshare: :138: etc/group: users:: 1000: etc/group: tpexec: :65500: etc/group: nosock: :65501: etc/group: nocsock: :65502: etc/group: nossock: :65503: etc/group: nofork: :65504: etc/group: nogroup: :65534:
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/
/tmp/rd/ etc/shadow: s