/srv/irclogs.ubuntu.com/2024/07/19/#ubuntu-discuss.txt

lotuspsychj3good morning03:22
JanCravage: you should not tell people to run commands like update-grub that can have side-effects just to get something that happens to be in their output12:15
JanCespecially as in the worst possible case, a failed update-grub could make a system unbootable  :)12:16
lotuspsychj3the user didnt edit their grub?12:17
JanCit wa to list installed kernels on the system12:17
JanCwas*12:17
lotuspsychj3ah12:18
lotuspsychj3dpkg --list | grep linux-image12:20
pragmaticenigmathat would be in accurate, as that lists the kernel packages on the machine, but wouldn't necessarily list the configured kernels for booting12:27
pragmaticenigma*inaccurate12:27
=== JanC is now known as Guest6880
=== JanC_ is now known as JanC
lotuspsychj3so whats the best command without update-grub12:28
pragmaticenigmaupdate-grub is certainly a bit unorthodox way to get the list, but I don't see much issue in it. To me, at worst it would complete an incomplete setup from a interrupted update by apt.12:31
lotuspsychj3its a reload mechanism that could be tricky 'after' grub edits12:32
pragmaticenigmaindeed it is, one could `ls -l /etc/initrd*` but there are symlinks that get returned with that12:36
pragmaticenigmaoops12:36
pragmaticenigmatoo tird12:36
pragmaticenigmaindeed it is, one could `ls -l /boot/initrd*` but there are symlinks that get returned with that12:36
pragmaticenigmaor swap initrd with config12:36
JanCpragmaticenigma: worst case it writes an empty or incorrect grub.cfg ...12:38
JanCit's *unlikely* but not impossible  :)12:38
pragmaticenigmaa bit too doom and gloom... if that were to happen, I think the user has bigger problems12:39
JanCbut it's not needed, so why take the risk?12:39
JanCwhen you can use ls or the package manager12:39
lotuspsychj3sudo apt update && sudo apt full-upgrade is also risky :p12:40
JanCthat's not what I mean, obviously12:41
pragmaticenigmathey both have system wide impact. I see no differnce between running either one12:43
JanCI would never suggest you run either one as part of *diagnosing* a problem, that's the whole point12:45
pragmaticenigmayou haven't suggested an alternative. so I don't understand why you're getting upset when someone trying to help does something you don't agree with, but fail to offer a safer alternative.12:47
JanCthe alternative was already given12:47
pragmaticenigmaI'm going to use your playbook. "that's not what I meant"12:49
pragmaticenigmayou didn't immediately offer something when you made your statement. someone else suggested something12:49
pragmaticenigmaI was busy trying to verify an alternative, which was to `cat /boot/grub/menu.lst` but that has long been outdated12:50
JanCan alternative was given in #ubuntu before the update-grub statement was made, so I didn't need to give one...12:51
pragmaticenigmawow, just wow...12:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!