diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-04-13 20:27:48 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-04-13 20:27:48 +0200 |
| commit | f7e5ed3c8dffcdfc2c55c63f2e3cbcb390bbf013 (patch) | |
| tree | 0b610e56522989082301b14b0cef9a3109aa8d94 /apt-pkg/init.cc | |
| parent | cf71004551eca23f6d73648bc19f65e8b2a08ce9 (diff) | |
Show space estimate for /boot, if separate; or estimate initrd for /usr
Calculate an estimate of 110% of the biggest initrd + system.map
as the additional space a kernel needs in /boot.
If /boot is a different file system than /usr, print the size of
the kernels + the additional space they will need separately;
otherwise include it in our /usr figure.
Diffstat (limited to 'apt-pkg/init.cc')
| -rw-r--r-- | apt-pkg/init.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc index 75935404f..487f94f20 100644 --- a/apt-pkg/init.cc +++ b/apt-pkg/init.cc @@ -147,6 +147,8 @@ bool pkgInitConfig(Configuration &Cnf) // Configuration Cnf.CndSet("Dir::Etc", &CONF_DIR[1]); + Cnf.CndSet("Dir::Boot", "boot"); + Cnf.CndSet("Dir::Usr", "usr"); Cnf.CndSet("Dir::Etc::sourcelist","sources.list"); Cnf.CndSet("Dir::Etc::sourceparts","sources.list.d"); Cnf.CndSet("Dir::Etc::main","apt.conf"); |
