Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Greg Wooledge Newsgroups: linux.debian.user Subject: Re: dpkg in Bookworm insists to rebuild initrd Date: Thu, 10 Feb 2022 13:30:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-user-request@lists.debian.org Thu Feb 10 12:20:08 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.207 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Mail-Followup-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/785976 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/YgUC5rLYcExyE1cn@wooledge.org Approved: robomod@news.nic.it Lines: 16 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 10 Feb 2022 07:19:50 -0500 X-Original-Message-ID: X-Original-References: <5c4e0651-9c68-ee32-c32b-3d9484884b79@earthlink.net> Xref: csiph.com linux.debian.user:245174 On Wed, Feb 09, 2022 at 11:09:40PM -0500, Felix Miata wrote: > mv: cannot move '/boot/initrd.img-5.15.0-3-amd64.new' to > '/boot/initrd.img-5.15.0-3-amd64': Operation not permitted > What can be done to make dpkg stop trying to replace the initrd that I have made > immutable? I don't want it replaced. Easy answer: make a copy of your special initrd, then turn off the immutable bit, then let dpkg do its thing and be happy, then replace the initrd with your copy and restore the immutable bit. Harder answer: probably edit /etc/kernel-img.conf and change the setting of do_initrd. But I've never tried that, so I don't know exactly what it does. At best, I'd imagine it might turn off *all* initrd creations, which would affect your *other* kernels too, not just this one.