[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#982591: grub-pc can't be updated non-interactively on debian/buster64




On February 27, 2021 8:44:44 PM UTC, Lucas Nussbaum <lucas@debian.org> wrote:
>On 27/02/21 at 15:16 +0100, Evgeni Golov wrote:
>> On Fri, Feb 26, 2021 at 10:54:32PM +0100, Lucas Nussbaum wrote:
>> > Tentative patch:
>> > https://salsa.debian.org/cloud-team/debian-vagrant-images/-/commit/b82d522f65b507767f909b2b9471c5a9ade75e05
>> 
>> Thanks Lucas! That looks quite like the "first-boot script" I mentioned
>> in the original report.
>> 
>> One q tho: isn't `findmnt --noheadings --output SOURCE /` easier to read
>> than running awk on /proc/mounts? It's in util-linux and that's
>> essential anyways :)
>
>Ah, thanks, I did not know about findmnt. Yes, that would be better.
>
>(We would still need to get the disk, not the partition)

lsblk --output PKNAME /dev/sda1 will give you sda :)
Also from util-linux.
Might not work reliably when there is lvm/devicemapper in-between, but that shouldn't be a problem in this particular case.

Enjoy!


Reply to: