[Bug 228606] makeroot.sh w/ -f fails with duplicate definition errors
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 30 13:43:00 UTC 2018
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 at FreeBSD.org
Reporter: emaste at 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.
More information about the freebsd-bugs
mailing list