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


Groups > linux.debian.kernel > #69721

Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null

Path csiph.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Frederik Lindenaar <frederik@lindenaar.nl>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null
Date Sat, 06 Mar 2021 17:30:02 +0100
Message-ID <BPHYu-2ED-5@gated-at.bofh.it> (permalink)
References <BPFMZ-1rp-1@gated-at.bofh.it> <BPHlL-2cx-3@gated-at.bofh.it> <BPFMZ-1rp-1@gated-at.bofh.it> <BPHlL-2cx-3@gated-at.bofh.it>
X-Original-To Ben Hutchings <ben@decadent.org.uk>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Mar 6 16:24:12 2021
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.951
Reply-To Frederik Lindenaar <frederik@lindenaar.nl>, 984650@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 984650
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Keywords moreinfo
X-Debian-Pr-Source initramfs-tools
X-Spam-Bayes score:0.0000 Tokens: new, 24; hammy, 150; neutral, 87; spammy, 0. spammytokens: hammytokens:0.000-+--deb10u1, 0.000-+--HCc:U*debian, 0.000-+--systemd, 0.000-+--symlink, 0.000-+--symlinks
Content-Type text/plain; charset=us-ascii
MIME-Version 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\))
Content-Transfer-Encoding quoted-printable
X-Mailer Apple Mail (2.3654.60.0.2.21)
X-Greylist delayed 444 seconds by postgrey-1.36 at buxtehude; Sat, 06 Mar 2021 16:21:04 UTC
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1655008
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 53
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Frederik Lindenaar <debian@frederik.lindenaar.nl>, 984650@bugs.debian.org
X-Original-Date Sat, 6 Mar 2021 17:13:31 +0100
X-Original-Message-ID <C4A1E211-22F9-4D3A-9558-50AE606851CF@lindenaar.nl>
X-Original-References <161503907137.754.11239798935917444445.reportbug@teletskoye.almere.lindenaar.net> <2389ca1e274534c94e46da3da28b9eee19e1fd00.camel@decadent.org.uk> <161503907137.754.11239798935917444445.reportbug@teletskoye.almere.lindenaar.net> <2389ca1e274534c94e46da3da28b9eee19e1fd00.camel@decadent.org.uk>
Xref csiph.com linux.debian.bugs.dist:1051162 linux.debian.kernel:69721

Cross-posted to 2 groups.

Show key headers only | View raw


Hi Ben,

Thanks for the quick reply. I am not sure how I could have mixed these two up but did a quick test with cp just now and the problem indeed looks like mixing up /dev/zero and /dev/null (I have no way to check that anymore though).

Nevertheless the result was very confusing (a full disk) so might still be good to check somehow

regards,

Frederik

> On 6 Mar 2021, at 16:38, Ben Hutchings <ben@decadent.org.uk> wrote:
> 
> Control: tag -1 moreinfo
> 
> On Sat, 2021-03-06 at 14:57 +0100, Frederik Lindenaar wrote:
>> Package: initramfs-tools
>> Version: 0.133+deb10u1
>> Severity: important
>> 
>> When one disables the "Predicatble Network InterfaceNames" 
>> by making /lib/systemd/network/99-default.link a symlink to /dev/zero then
>> update-initramfs will fail as the copy of this symlink will fill-up all space
>> available in /var/tmp and makes it impossible to install any kernel image
>> 
>> the culprit is the following command executed by update-initramfs:
>> 
>>         find /etc/systemd/network -name *.link -execdir cp -pt /var/tmp/ {} +
>> 
>> As it (and should) dereference de symlink, it reads zero bytes from
>> /dev/null until the disk is full.
> [...]
> 
> It looks like you have mixed up /dev/null and /dev/zero (as a Dutch
> learner, I can see how that would happen).  /dev/null is always empty
> and would be copied as an empty file.  This is the correct target for
> symlinks when you want to disable a systemd unit.  /dev/zero is an
> infinite stream of binary zeroes and would result in the behaviour you
> saw.
> 
> Ben.
> 
> 
> -- 
> Ben Hutchings
> Knowledge is power.  France is bacon.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Frederik Lindenaar <debian@frederik.lindenaar.nl> - 2021-03-06 15:10 +0100
  Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Cyril Brulebois <kibi@debian.org> - 2021-03-06 16:40 +0100
    Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Frederik Lindenaar <frederik@lindenaar.nl> - 2021-03-06 17:30 +0100
  Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Ben Hutchings <ben@decadent.org.uk> - 2021-03-06 16:50 +0100
    Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Frederik Lindenaar <frederik@lindenaar.nl> - 2021-03-06 17:30 +0100
      Bug#984650: update-initramfs fails when /etc/systemd/network/99-default.link is symlink to /dev/null Ben Hutchings <ben@decadent.org.uk> - 2021-03-07 20:40 +0100
  Processed: Re: Bug#984650: update-initramfs fails when  /etc/systemd/network/99-default.link is symlink to /dev/null "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-03-06 17:10 +0100
  Processed: Re: Bug#984650: update-initramfs fails when  /etc/systemd/network/99-default.link is symlink to /dev/null "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-03-07 21:00 +0100

csiph-web