Date: Wed, 30 May 2018 13:42:57 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228606] makeroot.sh w/ -f fails with duplicate definition errors Message-ID: <bug-228606-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228606 Bug ID: 228606 Summary: makeroot.sh w/ -f fails with duplicate definition errors Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org I have the result of a -DNO_ROOT installworld and installkernel at /usr/obj/freebsd-root, and execute makeroot: sh tools/tools/makeroot/makeroot.sh -s 32m -f filelist output.img /usr/obj/freebsd-root/ With a filelist of ``` boot/kernel/kernel etc/pam.d/README ``` makeroot.sh fails with ``` /tmp/makeroot.KQ8In/manifest:3: warning: tags: unsupported keyword /tmp/makeroot.KQ8In/manifest:4: error: duplicate definition of boot /tmp/makeroot.KQ8In/manifest:8: warning: tags: unsupported keyword /tmp/makeroot.KQ8In/manifest:9: error: duplicate definition of pam.d /tmp/makeroot.KQ8In/manifest:10: error: duplicate definition of pam.d /tmp/makeroot.KQ8In/manifest:11: error: duplicate definition of pam.d /tmp/makeroot.KQ8In/manifest:12: error: duplicate definition of pam.d /tmp/makeroot.KQ8In/manifest:13: warning: tags: unsupported keyword makefs: 5 error(s) and 3 warning(s) in mtree manifest ``` The duplicates occur because some directory entries are emitted for multiple packages: ``` % grep 'pam.d type=dir' /usr/obj/freebsd-root/METALOG ./etc/pam.d type=dir uname=root gname=wheel mode=0755 ./etc/pam.d type=dir mode=0755 tags=package=runtime ./etc/pam.d type=dir mode=0755 tags=package=at ./etc/pam.d type=dir mode=0755 tags=package=ftp ./etc/pam.d type=dir mode=0755 tags=package=telnet ``` With a filelist of ``` /boot/kernel/kernel /etc/pam.d/README ``` or ``` ./boot/kernel/kernel ./etc/pam.d/README ``` the script succeeds but the created filesystem is empty. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228606-227>
