Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236812

Re: removing modules

From The Wanderer <wanderer@fastmail.fm>
Newsgroups linux.debian.user
Subject Re: removing modules
Date 2021-07-03 19:40 +0200
Message-ID <CwRMu-7g9-3@gated-at.bofh.it> (permalink)
References (1 earlier) <CwQnn-6tT-1@gated-at.bofh.it> <CwQGJ-6Bk-3@gated-at.bofh.it> <CwRjs-74O-3@gated-at.bofh.it> <CwRjs-74O-1@gated-at.bofh.it> <CwRMu-7g9-5@gated-at.bofh.it>
Organization This space intentionally left blank.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2021-07-03 at 13:28, mick crane wrote:

> On 2021-07-03 18:03, The Wanderer wrote:
> 
>>> I looked because "apt upgrade" failed to install things in /boot 
>>> because no room left. I deleted the oldest kernel stuff of the 3 
>>> there and "apt upgrade" worked.
>> 
>> I hope you removed them by uninstalling their kernel packages, not
>> by just deleting the files from under /boot directly.
> 
> <cough> what happens if I might remove them by <cough> deleting them
> ?

If the files under /boot from a kernel package has been deleted, but
that package is still marked as installed, nothing bad should happen as
long as you don't try to do anything which would have used those files.

It's just that there's an inconsistency between what the package manager
thinks is present, and what's actually installed. Depending on how
things are implemented, the package manager might trigger doing
something with those files the next time you install or upgrade a
kernel, or it might not; I don't remember enough specific details just
at the moment to be sure, although I think you're probably safe in that
regard.

The good news is that A: as long as you know which files were deleted,
it should be fairly straightforward to figure out which packages they
came from, and

B: as long as you know which packages the deleted files came from, it
should be fine to remove the packages after the fact, thereby bringing
things back into sync.

The only issue should come about if somehow the removal scripts for the
package notice the absence of the files and can't handle it, and that
doesn't seem likely to me.

> I don't see any option from grub for booting different kernels.

Depending on what GRUB you have and how it's configured (and possibly on
exactly what files you had before the deletion), that might be normal.
For some while now, all GRUB on my own machines has been showing me is a
"boot the default kernel with the default arguments" option and a second
option to view more options; the latter menu, when I bother to check it,
usually shows at least one other kernel, as well as e.g. the
single-user-mode boot option for the default kernel.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

removing modules mick crane <mick.crane@gmail.com> - 2021-07-03 18:10 +0200
  Re: removing modules Reco <recoverym4n@enotuniq.net> - 2021-07-03 18:20 +0200
  Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 18:30 +0200
    Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:10 +0200
      Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:40 +0200
      Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:40 +0200
    Re: removing modules IL Ka <kazakevichilya@gmail.com> - 2021-07-03 19:10 +0200
      Re: removing modules Hans <hans.ullrich@loop.de> - 2021-07-03 20:10 +0200
        Re: removing modules Sven Hartge <sven@svenhartge.de> - 2021-07-03 20:50 +0200
    Re: removing modules Reco <recoverym4n@enotuniq.net> - 2021-07-03 19:10 +0200
    Re: removing modules Greg Wooledge <greg@wooledge.org> - 2021-07-03 19:20 +0200
      Re: removing modules Greg Wooledge <greg@wooledge.org> - 2021-07-03 20:10 +0200
        Re: removing modules Stefan Monnier <monnier@iro.umontreal.ca> - 2021-07-03 20:30 +0200
          Re: removing modules Stefan Monnier <monnier@iro.umontreal.ca> - 2021-07-03 22:40 +0200
          Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-04 17:30 +0200
      Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-03 21:10 +0200
        Re: removing modules Tom Dial <tddial@comcast.net> - 2021-07-04 05:10 +0200
          Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 11:10 +0200
            Re: removing modules Tixy <tixy@yxit.co.uk> - 2021-07-04 14:50 +0200
              Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 20:50 +0200
                Re: removing modules Brad Rogers <brad@fineby.me.uk> - 2021-07-04 21:20 +0200
                Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 22:20 +0200
                Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-05 07:00 +0200
                Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-05 12:10 +0200
    Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-03 19:40 +0200
  Re: removing modules IL Ka <kazakevichilya@gmail.com> - 2021-07-03 18:30 +0200

csiph-web