From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 864D21382C5 for ; Sat, 6 Jun 2020 05:55:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3912E093A; Sat, 6 Jun 2020 05:55:35 +0000 (UTC) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AB853E08A6 for ; Sat, 6 Jun 2020 05:55:35 +0000 (UTC) Received: by mail-ot1-x32c.google.com with SMTP id g5so9402186otg.6 for ; Fri, 05 Jun 2020 22:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=M8ArMk+SrAhKfTeX78av6XFrTH+AEAk8ZyAGZORy09U=; b=MQlou2Er5qxT2EFMSwgua6vXAMHLKdrJQjW8YO2DbhFR+X/qQg5te7IR/lqErAveoC jdckteXEZF3Qv0lfVXyoZh71AIjftitleDEYyDU7M9RsJZYRbaXxDBeFlmJ1HxG13kpG 5+JEqTk4f6+0QLwVSZIbkfPg1GGH3Z67XVDN8RNfCmh4XdJNwbm0KQGPrQLs2sDN1Go7 jsGtcWC9t4/FtmLpnKeEO/eiHy+gTgH6pCo+BBjOrFfQvq72Tjy6BOaxl9O8E1hNCyfq gl0BQj6cAFHIlMFDAxbP1yjR6gSEl+0a84DdAv9WN+vDnIj1zazgi4/loGsjhxubLN7+ jtgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=M8ArMk+SrAhKfTeX78av6XFrTH+AEAk8ZyAGZORy09U=; b=UFe6E6p33zy6To9Rq6NYEB1eVreOv3oQj+1PCVX6Fhk2DOstG4CMIjlDfzkEwMGtNx 4GR+blGx3tIdU9ezHwe/pslQF+mFMvrOCi8Qy7E3qiB4ok0LIzENsyfTu61iti2b9EUt CIZEaT8JYG4wJvqrsOpV5GCmxCDGdi5/ohfC+1CXq+ULwQgxJ7ddzC6zhytuRIUqCTdS LYR5WJV6ASCPzzMnWjdtcXRvAEMs0NSud8xpneeAnZNDhQWMOzshGVecM3usVSb1ObEi dmddIOYz6X3VkdQrqDt0C4B0mhJpI415OJ8BeD0b3Rf06hurqL1uajeSJ9CwzoGuGJzX 7vSg== X-Gm-Message-State: AOAM533wlWMVv1lF/9P79mImf23cdo7wljVesvgOqMdDH5wjzLvUQqZ/ TEsKDjsYCplU26VlWOOG3LXDVU3CE2im38VxOTl+bQ== X-Google-Smtp-Source: ABdhPJxY1ydZa/qd8f+cj1h3PI9lh037CI0+VYUcoc/ikgK7Sn2N/+VDTG+Wehd0WSxw1szs/HkMnSmbWpnVBsbRTMw= X-Received: by 2002:a05:6830:14d9:: with SMTP id t25mr10230204otq.12.1591422934571; Fri, 05 Jun 2020 22:55:34 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Adam Carter Date: Sat, 6 Jun 2020 15:54:59 +1000 Message-ID: Subject: Re: [gentoo-user] Kernel panic - not syncing: No working init found. To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000b3dda205a7640636" X-Archives-Salt: cc3609b3-0015-46c9-a1b5-ce1f1185099b X-Archives-Hash: b1e04e74ac02db75c807663c390028cf --000000000000b3dda205a7640636 Content-Type: text/plain; charset="UTF-8" > > On my boxes with swap files, kernel 5.7.0 barfs; > > # file /swapfile > /swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size > 2097151 pages, no label > # swapon -a > swapon: /swapfile: swapon failed: Invalid argument > > I havent looked into it yet as they're rarely used at all. What kernel are > you using? > FYI this issue is due to fallocate creating files with holes (found via dmesg | grep -i swap). Once I recreated the files with dd if=/dev/zero they were good. --000000000000b3dda205a7640636 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On my b= oxes with swap files, kernel 5.7.0 barfs;

# file /= swapfile
/swapfile: Linux/i386 swap file (new style), version 1 (4K pag= es), size 2097151 pages, no label
# swapon -a
swapon: /swapfil= e: swapon failed: Invalid argument

I ha= vent looked into it yet as they're rarely used at all. What kernel are = you using?

FYI this i= ssue is due to fallocate creating files with holes (found via dmesg | grep = -i swap). Once I recreated the files with dd if=3D/dev/zero they were good.=
--000000000000b3dda205a7640636--