Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 68307782BE1 for <~alpine/users@lists.alpinelinux.org>; Fri, 3 Apr 2020 19:46:09 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id t7so9864074wrw.12 for <~alpine/users@lists.alpinelinux.org>; Fri, 03 Apr 2020 12:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pm7FZz/PStbJ68e26LXhJHGvMWjpXLn1eysEGHzUvac=; b=CGgf+nIV3zMXVaAS4/iITcApswXdNnIlLO938mcf2wSOMkEo/WZDT83Qt97oJtBHJf jmlS6YM9AiYq1zWrkzZRiOcXXN+Wljzscb2pp2i/XyfWtKbxBhSr6LYA/75fxsIwYfKF GwT5prN1+0msIBBc2l49Q5yis5q7avuHxvhtZc8vIqYEKhpvs4sZqJ/zquP2NauN9Isr /E0TjoBhBW1JMvRDFkEbTsj8zFrUvE4lhKDMtQNYVjkl2hid7HA+NGb6JTLzFkXGngVa gdtXBOyv/zJHvrZ+MuXjvuwso+2lsPGVohku+RyUeNvyrn7/HXYF4u8/EEeYy+p5QPpC mZig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pm7FZz/PStbJ68e26LXhJHGvMWjpXLn1eysEGHzUvac=; b=YyvR7COLTvqGzWJB0uIjuij/ze9WAwlcPJ0grq8BHNHZcaSS+AaOadWKAisjJLPUAb U6pD3AiYUODKAQ1mybKHep2r3EElH/0qH6mrNDz9T5bWBUlt7TgcN6U4mJDFISdkUnqL x9euDRjcSV+V5c9jxs44QZwPH6fdZn+BxfHy9vNFbV6goPywoHWXHtiKPxhHARsVceAF tu4t8qd0NOABmIiq/DdR/4pKXgWpSBCGpsBEwYW8xEu4G8j/bQFHc7T0A12uxREomSls HpBPETYCArs1dt0PdWsTIg6h8bxgOiGJARcwbd5ziyNLRqFV8YdmgKr2n7JAfzSI1v5b 6/Jg== X-Gm-Message-State: AGi0PubzfL5lyh3gI71epj5qSrP+3D70O2Bt6WxYSFrMF9E5Pa1QrRGZ 2sN39POoO156uoi3nchAX84WYoyn X-Google-Smtp-Source: APiQypJL4R79xZeYS5cwrKhBCf/hvOXha4V+22eVifK4jkwly4SlXqu/e5d69bYH6iwI+T7chcLa7Q== X-Received: by 2002:a5d:6187:: with SMTP id j7mr11139050wru.419.1585943168359; Fri, 03 Apr 2020 12:46:08 -0700 (PDT) Received: from homepc.locald00dz (aftr-88-152-185-216.unity-media.net. [88.152.185.216]) by smtp.gmail.com with ESMTPSA id f16sm6221492wmc.37.2020.04.03.12.46.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Apr 2020 12:46:07 -0700 (PDT) Date: Fri, 3 Apr 2020 21:46:06 +0200 From: Daniel Kulesz To: ~alpine/users@lists.alpinelinux.org Cc: markand@malikania.fr Subject: Re: Custom kernel 5.6.2 with luks: unable to mount root Message-Id: <20200403214606.cade560a1327ae5a42d32137@googlemail.com> In-Reply-To: <4ce428a9-eed0-ce97-4cef-87cae578ea36@malikania.fr> References: <4ce428a9-eed0-ce97-4cef-87cae578ea36@malikania.fr> X-Mailer: Daniel's homebrew MUA 0.0.1-early-pre-alpha Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi David, there could be various reasons thus, personally, I would suggest trying to rebuild the lts kernel with the official config first. Maybe start with the current kernel version (5.4.30), build this first and check if it boots. If it does, switch to your newer 5.6.x kernel and check there. I would also suggest to use the official config that can be found here: https://git.alpinelinux.org/aports/plain/main/linux-lts/config-lts.x86_64 (if I'm not mistaken by the config you shared you are on x86_64) Good luck! Cheers, Daniel On Fri, 3 Apr 2020 11:19:19 +0200 David Demelier wrote: > Hey there, > > I'm having few issues with the LTS kernel regarding the iwlwifi driver > so I wanted to try the latest kernel version by hand. > > I had an old kernel configuration that I upgraded to 5.6.2 using `make > olddefconfig` and checked that every required drivers were still enabled. > > I have the following kernel command line: > > cryptdm=cryptroot cryptroot=/dev/nvme0n1p2 root=/dev/mapper/cryptroot > rootfstype=ext4 ro > > I also added "cryptsetup" in the features in mkinitfs.conf > > But then, with the proper initramfs rebuilt with `mkinitfs 5.6.2` the > kernel boots and immediately panic with the following error: > > VFS: Cannot open root device "mapper/cryptroot" or unknown-block(0,0): > error -6 > Please append a correct "root=" boot option: > > Then, a list of devices are listed (including /dev/nvme*) > > What I don't understand is why the kernel does not understand that it is > an encrypted volume and that is has to wait until initramfs ask a > passphrase for it (the kernel never asks the passphrase, isn't it?). > > Here's my kernel config FWIW: https://pastebin.com/mXisHP78 > > To my understanding, the linux-lts package does not come with any patch, > so a vanilla kernel should work too. I don't know what could be wrong > here in my case. > > Any help is welcome. > > -- > David