1dpkg-fsys-usrunmess(8)            dpkg suite            dpkg-fsys-usrunmess(8)
2
3
4

NAME

6       dpkg-fsys-usrunmess - undoes the merged-/usr-via-aliased-dirs mess
7

SYNOPSIS

9       dpkg-fsys-usrunmess [option...]
10

DESCRIPTION

12       dpkg-fsys-usrunmess is a tool to fix up filesystems that have been
13       installed anew with recent installers with unfortunate defaults or
14       migrated to the broken merged /usr via aliased directories layout,
15       which is not supported by dpkg. See the dpkg FAQ.
16
17       The program will perform the following overall actions:
18
19       •   Check whether the system needs to be switched, otherwise do
20           nothing,
21
22       •   Check for dpkg database consistency and otherwise abort.
23
24       •   Generate and install a regression prevention package, if requested
25           on the command-line or otherwise on the prompt.
26
27       •   Get the list of files and alternatives that need to be restored.
28
29       •   Look for untracked kernel modules files that need to be moved too.
30
31       •   Create a shadow hierarchy under /.usrunmess, by creating the
32           directories symlinks or hardlinking or copying the files as needed.
33
34       •   Prompt for confirmation before proceeding, if requested on the
35           command-line.
36
37       •   Lock the dpkg database.
38
39       •   Mark all packages as half-configured to force running maintainer
40           scripts that might need to recreate files.
41
42       •   Replace the aliased directories with the shadow ones, by creating a
43           backup of the old symlinked directories and renaming the shadow
44           ones over.
45
46       •   Relabel MAC information for directories and symlinks if necessary.
47
48       •   Remove backup symlinks.
49
50       •   Remove old moved objects, but defer directory removal.
51
52       •   Remove old deferred directories that are not referenced by dpkg-
53           query.
54
55       •   Remove shadow root directory.
56
57       •   Register a policy-rc.d to disallow service actions, which means
58           that services might need to be restarted afterwards, ideally via a
59           reboot.
60
61       •   Reconfigure all packages.
62
63       •   Unregister the policy-rc.d and restore the alternatives state.
64
65       Note: When running the program from some shells such as bash(1) or
66       zsh(1), after executing it, you might need to request the shell to
67       forget all remembered executable locations with for example "hash -r".
68
69       Note: Some directories might linger after the migration in case they
70       contain untracked files. A list is printed once the script has finished
71       for further investigation.
72
73       Warning: Note that this operation has the potential to render the
74       system unusable or broken in case of a sudden crash or reboot,
75       unexpected state of the system, or possible bugs in the script. Be
76       prepared with recovery media and consider doing backups beforehand.
77

OPTIONS

79       -p, --prompt
80           Prompt at the time of no return, so that the debug output or the
81           shadow hierarchy can be evaluated before proceeding.
82
83       --prevention
84       --no-prevention
85           Enables or disables generating and installing a regression
86           prevention package into the system.  If no option has been
87           specified, the action to take will be prompted.
88
89           The generated package contains the Protected field set to yes to
90           protect against accidental removal of the package.
91
92       -n, --no-act
93       --dry-run
94           This option enables the dry-run mode, where no destructive action
95           takes place, only the preparatory part.
96
97       -?, --help
98           Show the usage message and exit.
99
100       --version
101           Show the version and exit.
102

ENVIRONMENT

104       DPKG_USRUNMESS_NOACT
105           This setting defines whether to enable dry-run mode.
106

SEE ALSO

108       <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>.
109
110
111
1121.21.8                            2022-05-25            dpkg-fsys-usrunmess(8)
Impressum