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=3D228606 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=3Ddir' /usr/obj/freebsd-root/METALOG ./etc/pam.d type=3Ddir uname=3Droot gname=3Dwheel mode=3D0755 ./etc/pam.d type=3Ddir mode=3D0755 tags=3Dpackage=3Druntime ./etc/pam.d type=3Ddir mode=3D0755 tags=3Dpackage=3Dat ./etc/pam.d type=3Ddir mode=3D0755 tags=3Dpackage=3Dftp ./etc/pam.d type=3Ddir mode=3D0755 tags=3Dpackage=3Dtelnet ``` With a filelist of=20 ``` /boot/kernel/kernel /etc/pam.d/README ``` or ``` ./boot/kernel/kernel ./etc/pam.d/README ``` the script succeeds but the created filesystem is empty. --=20 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>