/var/lib/dpkg/info/$arch still a directory on new installs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Natty |
Fix Released
|
High
|
Steve Langasek |
Bug Description
Binary package hint: dpkg
debootstrap unpacks base packages in alphabetical order:
I: Unpacking required packages...
I: Unpacking adduser...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking bsdutils...
I: Unpacking busybox-
I: Unpacking coreutils...
I: Unpacking cpio...
I: Unpacking dash...
I: Unpacking debconf...
I: Unpacking debconf-i18n...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
So before the dpkg preinst script has ever been run, a number of other packages have been unpacked - autocreating /var/lib/
This may be related to some of the problems still being reported for alpha 3 on the preinstalled images.
Related branches
Changed in dpkg (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Steve Langasek (vorlon) |
milestone: | none → natty-alpha-3 |
However, debootstrap 1.0.28ubuntu1 now creates the symlink before any of that. Anything that's debootstrapping natty needs to make sure to use at least this version.
The reason I don't like approaches such as 'mv /var/lib/ dpkg/info/ armel/* /var/lib/dpkg/info/ && rmdir /var/lib/ dpkg/info/ armel && ln -sf . /var/lib/ dpkg/info/ armel' (as you suggested on IRC) are that they're unsafe; a power failure in the middle of that will result in a corrupted dpkg database.