GeistHaus
log in · sign up

https://unixbhaskar.wordpress.com/atom

atom
10 posts
Polling state
Status active
Last polled May 19, 2026 02:03 UTC
Next poll May 20, 2026 01:35 UTC
Poll interval 86400s
Last-Modified Wed, 01 Apr 2026 22:34:29 GMT

Posts

Git and Fzf Match Made In Heaven!
GNU/LinuxTechnical Git Tools Opensoure Linux
Well, both the tools are amazing to say the least. While combining them gives a stunning effect of productivity. I have written about Fzf1 and Git2 many times on this blog(go and find out). In this specific post, I shall be revealing my little hand-crafted tool for exploring the git repo. But wait, am I […]
Show full content

Well, both the tools are amazing to say the least. While combining them gives a stunning effect of productivity. I have written about Fzf1 and Git2 many times on this blog(go and find out).

In this specific post, I shall be revealing my little hand-crafted tool for exploring the git repo. But wait, am I not aware of this beautiful thing ?? In fact, I am very much.

But this is another take on simply combining my need to dispose of it, when I need them most.

I have written an abject ordinary and almost laughable shell script to combine these two tools to show something useful .

So, without further ado, here is the damn piece…

#!/bin/bash -
#===============================================================================
#
#          FILE: find_git_repos.sh
#
#         USAGE: ./find_git_repos.sh
#
#   DESCRIPTION: Finding all the git repos in the system via fzf
#
#       OPTIONS: ---
#  REQUIREMENTS: --- fzf git
#          BUGS: ---
#         NOTES: --- Convenience and easy interface
#        AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com
#  ORGANIZATION: Independent
#       CREATED: 04/11/25 11:30
#      REVISION:  ---
#===============================================================================

#set -o nounset                              # Treat unset variables as an error

basedir=/home/bhaskar/git-linux

git_repos=$(find "$basedir" -maxdepth 1 -type d,l -exec basename {} \; | grep -v git-linux | grep -v grep | fzf --multi --prompt "Select Git Repo:")

for repos in "$git_repos";do
       cd  "$basedir/$repos" && echo Pulling in $repos .... && git pull &&  git-search-log
done

..and the outcome is this :

2026-04-02-032352_1920x1200_scrot.png

2026-04-02-032426_1920x1200_scrot.png

You can query various parameters at the bottom of the screen prompt i.e. author, file etcetera etcetera

By the way, one last piece, that damn git-search-log script is this :

#!/usr/bin/env bash

set -euo pipefail


gitlog | fzf --prompt "$(basename $(git rev-parse --show-toplevel)):" --preview-window=right:50%  --preview "echo {} | sed 's/ .*//g' | xargs git show --color" --bind 'enter:execute(commit=$(echo {} | sed "s/ .*//g") && git diff-tree --no-commit-id --name-only $commit -r | fzf --preview-window=right:50% --preview "git show --color $commit -- $(git rev-parse --show-toplevel)/\{}")'

That gitlog is a function declared in my .bashrc, and the content is this:

2026-04-02-032957_1918x285_scrot.png

That’s how the entire thing is panned out.

Footnotes: 1 https://github.com/junegunn/fzf 2  https://github.com/git/git

http://unixbhaskar.wordpress.com/?p=1988
Extensions
Contributing To The Linux Kernel
GNU/LinuxTechnical Opensource Linux Git Automation Kernel Sourcecode
HEADS UP! This blog is written WITHOUT ANY ASSISTANCE from/by AI. A human typed all the words;mistakes are all mine. Well,to start with, I am very proud and NOT complacent about the progress I have made in it over the years.All my hand-crafted patches are being accepted in the project. Now, before you point out […]
Show full content

HEADS UP! This blog is written WITHOUT ANY ASSISTANCE from/by AI. A human typed all the words;mistakes are all mine.

Well,to start with, I am very proud and NOT complacent about the progress I have made in it over the years.All my hand-crafted patches are being accepted in the project.

Now, before you point out the trivialities and non-consequential nature of my patches to the project, I must remind you that I am told by people on a public platform that contribution like this has very low value. And I believe them.

Because,I have been using the damn thing called Linux for over two decades, exclusively( I have said that many a times in multiple places just to remind myself, than to convince others). Before getting into the foray of Linux Kernel Contribution , I was a power user of Linux for 19 long years.So, the kernel contribution comes as afterthought. Surprised?? It surprised me too!!

I am a late bloomer in every aspect of your imagination and in life. This is the consequence of it. I took up computers much later, in my late twenties,specifically in mid-90s. And could only afford the PC early 2000s.So, you see, I am behind 8 years of development already!! What a shame.

Never mind, my lack of bent of mind compensated with sheer inclination(tenacity), that is how it is possible to get into it.I didn’t have a plan to contribute, and I was happy to be a user and whine like every other nerd using this damn thing. But, ideal time and again inclination forced me to get involved in it.

Linux Kernel doesn’t provide too much low hanging fruits, because most of the kernel developers are super apt and very precise about their work. Fortunately, I got a few “easily” available stuff,probably ignored by the kernel developers or not considered good enough to pay attention, so I bank on them and try to plug the hole. Such trivialities.

The most memorable thing till now, is that I have annoyed a prominent leading kernel developer so much with my stupidity, that he ordered his sub-maintainers to stop accepting patches from me. Should I be angry??? Of course, I was fuming. But that didn’t last long, when I sit down and think why did he do that? And it revealed,that I could have done the same. In essence, I was doing something which over-burdening the respected developers with more work to do(already drowned by the sheer volumes), so as the leader of the pack, that prominent developer take call and issue a warning to me. The only good part happen to me is that, my little and often missing sense of sensibility kicked in and I realized how stupid I was.

So, since then, I have taken a cautious approach to sending something upstream. A mistake happened, and I thought it should be corrected. And not heard something bad yet(partly because I haven’t touched something very crucial and complicated, due to my lack of a bent of mind), to shout off.

But observing other more capable people in the mailing list and following their approach made me learn, how things should be provided. It took me some time, because I was doing it all alone, and absolute zero guidance. Nope, I am not putting that as an excuse, scope was there to ask for help, and I failed to get it that time.

But, as usual, learn late and never sigh at getting the stuff if I need to. I have touched various parts of the Linux Kernel in a very trivial way and in the process, discovered so many things. Some very insightful stuff to learn from.

Oh, btw, I was offered great hands by many renowned people too in the Linux Kernel Community , sheer good fortune!! It seems I am gonna spend the rest of my life delving into it. Basically, get the hang of it.

It taught me so many good things, one of the prominent parts is, never overdoing anything. To the point and precise. The importance of WHY is paramount to what produce them. You are supposed to let the concerned people know why you are doing the piece in the kernel. It is NOT YET ANOTHER OPEN SOURCE PROJECT, but it is the gold standard that other projects are derived from.

Persistence is key here. If you are not, chances are high that you are in oblivion quicker than you thought. Also, nobody gives a fuck about your ideas, if you failed to provide at least a (im)practical prototype to start with.So, talking, read conversation comes as an aftermath of the actual prototype in place. The best way you can tangle or interest people by providing your understanding via some work on the specific matters you are interested in. You will be getting a lot of feedback, and some of them are sound harsh. But, if you get over that hump, then you are in for a good ride and a memorable one.Also, changes in the kernel happen very slowly and time-consuming for various reasons. Patience is the key.

One of the noob mistakes in the early stage was being impatient with my mundane and trivial patches and nodding the maintainer too early . And I am told to hold my horses, they have more complicated stuff in hand, importantly, they are overwhelmed by the sheer volumes of patches they work on. Be kind to them, i.e. the maintainers.

Phew!! If you have read this long and are wondering and have not tried your luck with the tool to discover my trivialities in the Linux Kernel , here is something I have gathered with a trivial automation for ya to savor…….don’t fret

my_contribs_to_linux_kernel

#+RESULTS:
| f90d28443b1f | arch:powerpc:tools               | This                    | file              | was            | missing              | shebang               | line,                 | so                | added                      | it                       |             |                 |                |              |                 |
| 9afa2e0d4218 | tools/bootconfig:                | scripts/ftrace.sh       | was               | missing        | the                  | shebang               | line,                 | so                | added                      | it                       |             |                 |                |              |                 |
| 63989c7798be | tools:                           | bootconfig:             | Regex             | enclosed       | with                 | quotes                | to                    | make              | syntax                     | highlight                | proper      |                 |                |              |                 |
| 51f4c00436b8 | perf                             | tools:                  | Remove            | excess         | variable             | declarations          |                       |                   |                            |                          |             |                 |                |              |                 |
| 5632a5052bb6 | wifi:                            | iwlwifi:                | fw:               | api:           | Absolute             | rudimentary           | typo                  | fixes             | in                         | the                      | file        | power.h         |                |              |                 |
| 4b3761eebb1c | perf                             | c2c:                    | Fix               | a              | punctuation          |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 5facccc94023 | MAINTAINERS:                     | remove                  | links             | to             | obsolete             | btrfs.wiki.kernel.org |                       |                   |                            |                          |             |                 |                |              |                 |
| 236bdb881d96 | tools:                           | rcu:                    | Add               | usage          | function             | and                   | check                 | for               | argument                   |                          |             |                 |                |              |                 |
| da8daff9405e | kconfig:                         | Add                     | static            | text           | for                  | search                | information           | in                | help                       | menu                     |             |                 |                |              |                 |
| a1c414093370 | powerpc/epapr:                   | Fix                     | parmeters         | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| c5dac1f62153 | drm/nouveau/bios/init:           | A                       | typo              | fix            |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| fe8e320d8bf7 | media:                           | atomisp-ov2680:         | A                 | trivial        | typo                 | fix                   |                       |                   |                            |                          |             |                 |                |              |                 |
| 9a83f9aea7bf | tools:                           | include:                | nolibc:           | Fix            | a                    | typo                  | occured               | to                | occurred                   | in                       | the         | file            | nolibc.h       |              |                 |
| 46188352307c | drm/msm/dp:                      | Fixed                   | couple            | of             | typos                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| d2dfd21fcbf0 | drm/msm/dpu:                     | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 6bac5b13b4ec | drm/msm/dpu:                     | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bbfdad82efb3 | watchdog:                        | Fix                     | a                 | typo           | in                   | the                   | file                  | orion_wdt.c       |                            |                          |             |                 |                |              |                 |
| 879a70843afd | watchdog:                        | sl28cpld_wdt:           | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f79f7a2d9676 | arc:                             | Fix                     | typos/spellos     |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 7497835f7e8d | ipc/sem.c:                       | spelling                | fix               |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f0fffaff0b89 | kernel/up.c:                     | fix                     | typo              |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 2eb70aab25dd | include/linux/pgtable.h:         | few                     | spelling          | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| b1989a3db45a | ipc/sem.c:                       | mundane                 | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| ade29d4fdbe6 | lib/genalloc.c:                  | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0523c6922e8b | lib/bch.c:                       | fix                     | a                 | typo           | in                   | the                   | file                  | bch.c             |                            |                          |             |                 |                |              |                 |
| 31454980b8b5 | mm/util.c:                       | fix                     | typo              |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 7fc4607899e8 | Enlisted                         | oprofile                | version           | line           | removed              |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 8e9fa2f21151 | oprofiled                        | version                 | output            | line           | removed              | from                  | the                   | list              |                            |                          |             |                 |                |              |                 |
| f5169f713e0c | Removed                          | the                     | oprofiled         | version        | option               |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| be4f361d69f4 | s390:                            | dasd:                   | Mundane           | spelling       | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0b5121ef8510 | mm/kmemleak.c:                   | fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| dc84207d00be | mm/slub.c:                       | trivial                 | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f13604a2b9ff | ocfs2:                           | fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 454534366c6f | ia64:                            | trivial                 | spelling          | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 8b30c6256d2b | arch/ia64/include/asm/pgtable.h: | minor                   | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 3eac094b93e7 | arch/ia64/kernel/fsys.S:         | fix                     | typos             |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 82cc3b070350 | drm/vmwgfx:                      | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f3945833e436 | scripts:                         | modpost.c:              | Fix               | a              | few                  | typos                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 879a3209009f | docs:                            | kbuild:                 | Fix               | a              | typo                 | in                    | the                   | file              | Kconfig.recursion-issue-02 |                          |             |                 |                |              |                 |
| 73a76220e45e | hwmon:                           | (ftsteutates)           | Rudimentary       | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 705b5cfab183 | brcmfmac:                        | A                       | typo              | fix            |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 2377b1c49d48 | rtlwifi:                         | Few                     | mundane           | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| aa6ff555f0e6 | fuse:                            | fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bffbf6e2ad6a | kconfig:                         | lxdialog:               | A                 | spello         | fix                  | and                   | a                     | punctuation       | added                      |                          |             |                 |                |              |                 |
| 21f8b32fbdbc | kconfig:                         | streamline_config.pl:   | Couple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| ce2cb12dccab | net:                             | ethernet:               | intel:            | Fix            | a                    | typo                  | in                    | the               | file                       | ixgbe_dcb_nl.c           |             |                 |                |              |                 |
| f48bbfb20e1f | ovl:                             | trivial                 | typo              | fixes          | in                   | the                   | file                  | inode.c           |                            |                          |             |                 |                |              |                 |
| 9c9b81c45619 | md:                              | bcache:                 | Trivial           | typo           | fixes                | in                    | the                   | file              | journal.c                  |                          |             |                 |                |              |                 |
| 3088e5a5153c | ext4:                            | fix                     | various           | seppling       | typos                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 5bf314abfb8a | drm/amd:                         | Fix                     | a                 | typo           | in                   | two                   | different             | sentences         |                            |                          |             |                 |                |              |                 |
| 63a93023ee8c | drm/amd/amdgpu/gfx_v7_0:         | Trivial                 | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f19a2067a2e1 | drm/radeon/r600_cs:              | Few                     | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| a8a1de90e0dc | drm/atomic:                      | Couple                  | of                | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4a49751041bd | drm/amdgpu:                      | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 7c4f2b235d6f | drm/amdgpu:                      | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4763d3782764 | powerpc:                         | Spelling/typo           | fixes             |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0938def7817a | drivers:                         | gpu:                    | drm:              | msn:           | disp:                | dpu1:                 | Fixed                 | couple            | of                         | spellings                | in          | the             | file           | dpu_hw_top.h |                 |
| fbc9d37161b7 | vfio:                            | pci:                    | Spello            | fix            | in                   | the                   | file                  | vfio_pci.c        |                            |                          |             |                 |                |              |                 |
| 0aa2ddc9af44 | parisc:                          | math-emu:               | Few               | spelling       | fixes                | in                    | the                   | file              | fpu.h                      |                          |             |                 |                |              |                 |
| 73c9a3f3b346 | media:                           | cx88:                   | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 45cdd2a08a9e | media:                           | entity:                 | A                 | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 771df39b85fd | media:                           | atomisp:                | fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| c2508730d6bb | nfs:                             | Fix                     | a                 | typo           | in                   | the                   | file                  | nfs42xattr.c      |                            |                          |             |                 |                |              |                 |
| 4671076c4d37 | xtensa:                          | simcall.h:              | Change            | compitible     | to                   | compatible            |                       |                   |                            |                          |             |                 |                |              |                 |
| e1532777cae3 | xtensa:                          | Couple                  | of                | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 174c80b254a0 | ARM:                             | dts:                    | at91:             | Fix            | a                    | typo                  |                       |                   |                            |                          |             |                 |                |              |                 |
| ebf721fbbb6e | ASoC:                            | Intel:                  | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bb0f78e59777 | ASoC:                            | Intel:                  | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 50cbf945566b | ASoC:                            | Intel:                  | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 67ff1d98652a | i2c:                             | stm32f4:                | Mundane           | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| acebb5597ff1 | kernel/printk.c:                 | Fixed                   | mundane           | typos          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| abfdfd144357 | iio:                             | dac:                    | Rudimentary       | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| e23ecdf9fd87 | cxl:                             | Fix                     | couple            | of             | spellings            |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 89f7d2927ae1 | powerpc/kernel:                  | Trivial                 | typo              | fix            | in                   | kgdb.c                |                       |                   |                            |                          |             |                 |                |              |                 |
| 7a7d744ffe87 | powerpc/mm/book3s64:             | Fix                     | a                 | typo           | in                   | mmu_context.c         |                       |                   |                            |                          |             |                 |                |              |                 |
| f239873fcd95 | powerpc/64e:                     | Trivial                 | spelling          | fixes          | throughout           | head_fsl_booke.S      |                       |                   |                            |                          |             |                 |                |              |                 |
| a7fd0e6d758f | xfrm_user.c:                     | Added                   | a                 | punctuation    |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| aa8ef1b9abd4 | xfrm_policy.c                    | :                       | Mundane           | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| fb373c8455af | sm_statefuns.c:                  | Mundane                 | spello            | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f2e3093172b9 | reg.c:                           | Fix                     | a                 | spello         |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0184235ec6d1 | node.c:                          | A                       | typo              | fix            |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bcae6d5faf3f | netfilter:                       | nf_conntrack_acct.c:    | A                 | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f60d94f0d7b4 | netfilter:                       | ipvs:                   | A                 | spello         | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 195a8ec4033b | ncsi:                            | internal.h:             | Fix               | a              | spello               |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 55320b82d634 | mptcp:                           | subflow.c:              | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| b18dacab6bc4 | mac80211:                        | cfg.c:                  | A                 | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 61f840601084 | llc:                             | llc_core.c:             | COuple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 71a2fae50895 | kcm:                             | kcmsock.c:              | Couple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| bf05d48dbda8 | iucv:                            | af_iucv.c:              | Couple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 89e8347f0ff4 | ipv6:                            | route.c:                | A                 | spello         | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 912b519afc8f | ipv6:                            | addrconf.c:             | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| e5ca43e82d91 | ipv4:                            | tcp_lp.c:               | Couple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| a66e04ce0e01 | ipv4:                            | ip_output.c:            | Couple            | of             | typo                 | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| e919ee389c18 | bearer.h:                        | Spellos                 | fixed             |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 8406d38fde5c | af_x25.c:                        | Fix                     | a                 | spello         |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 40635128fee8 | scripts/spdxcheck.py:            | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| dbdc671d5c85 | misc:                            | genwqe:                 | Rudimentary       | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 1c72e02306b3 | dm                               | ebs:                    | fix               | a              | few                  | typos                 |                       |                   |                            |                          |             |                 |                |              |                 |
| aa43665aeeb3 | RDMA:                            | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4ae6573e699e | IB/hfi1:                         | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 2665a13a3e9e | usb:                             | typec:                  | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 27fb85783f0d | crypto:                          | inside-secure           | -                 | Minor          | typo                 | fix                   | in                    | the               | file                       | safexcel.c               |             |                 |                |              |                 |
| 583770e84a44 | ALSA:                            | pcm:                    | Fix               | couple         | of                   | typos                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 592485bcb567 | devicetree:                      | bindings:               | clock:            | Minor          | typo                 | fix                   | in                    | the               | file                       | armada3700-tbg-clock.txt |             |                 |                |              |                 |
| f9dd7ba4308c | xfs:                             | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0145225e353e | xfs:                             | Rudimentary             | spelling          | fix            |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bd24a4f5f7fd | xfs:                             | Rudimentary             | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4c976acb47bd | Input:                           | silead                  | -                 | fix            | a                    | typo                  |                       |                   |                            |                          |             |                 |                |              |                 |
| 1ccc4a39cc5c | docs:                            | filesystems:            | Fix               | a              | mundane              | typo                  |                       |                   |                            |                          |             |                 |                |              |                 |
| 1e528e9ea214 | docs:                            | powerpc:                | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 399bfc8b2918 | docs:                            | rbtree.rst:             | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 9cf1adc6d34f | blk-mq:                          | Sentence                | reconstruct       | for            | better               | readability           |                       |                   |                            |                          |             |                 |                |              |                 |
| 5153ceb9e622 | Bluetooth:                       | L2CAP:                  | Rudimentary       | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| c115c5680d09 | phy:                             | intel:                  | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| f1891f9bbc46 | scsi:                            | lpfc:                   | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 835b8c16a0e3 | scsi:                            | esp_scsi:               | Trivial           | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 9991ca001b9c | scsi:                            | bfa:                    | Fix               | a              | typo                 | in                    | two                   | places            |                            |                          |             |                 |                |              |                 |
| ae98ddf05fdb | scsi:                            | scsi_dh:                | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 5fae809faec6 | scsi:                            | bnx2fc:                 | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 206a3afa9482 | scsi:                            | mpt3sas:                | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| a89562e31f01 | scsi:                            | csiostor:               | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4613bdcc122e | kernel:                          | trace:                  | Mundane           | typo           | fixes                | in                    | the                   | file              | trace_events_filter.c      |                          |             |                 |                |              |                 |
| bef32aa8e412 | sfc-falcon:                      | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 536e11f96b03 | net:                             | sched:                  | Mundane           | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| b6c6680b8b3a | octeontx2-af:                    | Few                     | mundane           | typos          | fixed                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 709e8c99208e | dt-bindings:                     | msm:                    | Couple            | of             | spelling             | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 84fa3962d5ff | s390/crc32-vx:                   | couple                  | of                | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 6bbdc3db76cc | hv:                              | hyperv.h:               | a                 | few            | mundane              | typo                  | fixes                 |                   |                            |                          |             |                 |                |              |                 |
| dbb397ccc6bb | clk:                             | renesas:                | Couple            | of             | spelling             | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 8455033cd6a8 | MIPS:                            | PCI:                    | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| daffdec40d62 | mips:                            | asm:                    | octeon:           | A              | typo                 | fix                   | in                    | the               | file                       | cvmx-address.h           |             |                 |                |              |                 |
| d8da00e1a73e | w1:                              | slaves:                 | Typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0ea43c23d490 | cxl:                             | Fix                     | couple            | of             | spellings            |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| e5527d8ce28b | drm/amd/pm:                      | Mundane                 | typo              | fixes          | in                   | the                   | file                  | amdgpu_pm.c       |                            |                          |             |                 |                |              |                 |
| 5c4a4802b9ac | powerpc:                         | Fix                     | spelling          | of             | droping              | to                    | dropping              | in                | traps.c                    |                          |             |                 |                |              |                 |
| 04cdaf6d8f52 | platform/mellanox:               | Typo                    | fix               | in             | the                  | file                  | mlxbf-bootctl.c       |                   |                            |                          |             |                 |                |              |                 |
| 3b329cfec752 | platform/x86:                    | Typo                    | fix               | in             | the                  | file                  | classmate-laptop.c    |                   |                            |                          |             |                 |                |              |                 |
| 37ad56aa82be | power:                           | supply:                 | max17042:         | Trivial        | spelling             | fixes                 |                       |                   |                            |                          |             |                 |                |              |                 |
| f8028fd96f91 | staging:                         | rtl8723bs:              | Trivial           | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 5dd5f9347a92 | driver                           | core:                   | Trivial           | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 22fce66c19ca | tty:                             | vt:                     | Mundane           | typo           | fix                  | in                    | the                   | file              | vt.c                       |                          |             |                 |                |              |                 |
| 5255cdc306a9 | staging:                         | rtl8723bs:              | Mundane           | typo           | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| e1ce4de68054 | IB/hns:                          | Fix                     | mispelling        | of             | subsystem            |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 50feda23152e | RDMA/include:                    | Mundane                 | typo              | fixes          | throughout           | the                   | file                  |                   |                            |                          |             |                 |                |              |                 |
| aa785f93fcb4 | net:                             | l2tp:                   | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 405a129f5938 | linux/qed:                       | Mundane                 | spelling          | fixes          | throughout           | the                   | file                  |                   |                            |                          |             |                 |                |              |                 |
| f44773058ce2 | openvswitch:                     | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 0853f5ab35e6 | NFC:                             | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 07528783c7da | Bluetooth:                       | hci_qca:                | Mundane           | typo           | fix                  |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 31ba6fadc3ba | power:                           | supply:                 | charger-manager:  | Fix            | a                    | typo                  |                       |                   |                            |                          |             |                 |                |              |                 |
| d1296f1265f7 | arm64:                           | cpuinfo:                | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 4b19f9716ad8 | media:                           | pci:                    | saa7164:          | Rudimentary    | spelling             | fixes                 | in                    | the               | file                       | saa7164-types.h          |             |                 |                |              |                 |
| 5671d9718faf | s390/kernel:                     | fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| bbcee72c2f7a | microblaze:                      | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 15aa70a32bd0 | cpufreq:                         | Rudimentary             | typos             | fix            | in                   | the                   | file                  | s5pv210-cpufreq.c |                            |                          |             |                 |                |              |                 |
| 21ae24cce84f | staging:                         | vchiq:                  | Typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 87d77e59d1eb | docs:                            | networking:             | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 2e747fef26a5 | staging:                         | rtl8188eu:              | Fix               | couple         | of                   | typos                 |                       |                   |                            |                          |             |                 |                |              |                 |
| 8a2dc6af67a0 | sch_red:                         | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 2bbd9b0f2b4e | kernel:                          | debug:                  | Ordinary          | typo           | fixes                | in                    | the                   | file              | gdbstub.c                  |                          |             |                 |                |              |                 |
| 67a175a97079 | drm/meson:                       | Fix                     | few               | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| e5dd4e2181f7 | drm/i915/display:                | Fix                     | a                 | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 38cb57602369 | selftests:                       | net:                    | forwarding:       | Fix            | a                    | typo                  |                       |                   |                            |                          |             |                 |                |              |                 |
| 1816bf1f53cb | Fix                              | a                       | typo              |                |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 69a1709e2ec8 | scsi:                            | fusion:                 | Fix               | a              | typo                 | in                    | the                   | file              | mptbase.h                  |                          |             |                 |                |              |                 |
| bcf064bc2a3b | scsi:                            | fnic:                   | Rudimentary       | spelling       | fixes                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 1bf5fa1a2916 | scsi:                            | qla1280:                | Spelling          | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 8dd855334736 | ASoC:                            | Fix                     | a                 | typo           | in                   | the                   | file                  | rt5682.txt        |                            |                          |             |                 |                |              |                 |
| 4cf1d8719aab | drm:                             | Few                     | typo              | fixes          |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 29420aeb4c66 | staging:                         | wimax:                  | i2400m:           | Mundane        | typo                 | fix                   | in                    | the               | file                       | driver.c                 |             |                 |                |              |                 |
| a1aea351d4db | usb:                             | host:                   | Mundane           | spello         | fix                  | in                    | the                   | file              | sl811_cs.c                 |                          |             |                 |                |              |                 |
| 73a2218cb268 | net:                             | ppp:                    | Mundane           | typo           | fixes                | in                    | the                   | file              | pppoe.c                    |                          |             |                 |                |              |                 |
| c00f4f2598d3 | ASoC:                            | ti:                     | Fix               | a              | typo                 | in                    | the                   | file              | ams-delta.c                |                          |             |                 |                |              |                 |
| 4faf62b1ef1a | locking/rwsem:                   | Fix                     | comment           | typo           |                      |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 29c35da10347 | net:                             | ethernet:               | neterion:         | Fix            | a                    | typo                  | in                    | the               | file                       | s2io.c                   |             |                 |                |              |                 |
| 6f05a1224174 | net:                             | ethernet:               | intel:            | igb:           | Typo                 | fix                   | in                    | the               | file                       | igb_main.c               |             |                 |                |              |                 |
| a7dde236b317 | ethernet:                        | amazon:                 | ena:              | A              | typo                 | fix                   | in                    | the               | file                       | ena_com.h                |             |                 |                |              |                 |
| fdebeae0d75d | docs:                            | admin-guide:            | cgroup-v1:        | Fix            | typos                | in                    | the                   | file              | memory.rst                 |                          |             |                 |                |              |                 |
| 08a204387e80 | docs:                            | ABI:                    | Fix               | the            | spelling             | oustanding            | to                    | outstanding       | in                         | the                      | file        | sysfs-fs-xfs    |                |              |                 |
| 4ae20f26a157 | ARM:                             | mach-imx:               | Fix               | a              | spelling             | in                    | the                   | file              | pm-imx5.c                  |                          |             |                 |                |              |                 |
| 65c7bc1b7a66 | net:                             | ethernet:               | marvell:          | Fixed          | typo                 | in                    | the                   | file              | sky2.c                     |                          |             |                 |                |              |                 |
| 7996dfd6ed28 | clk:                             | at91:                   | Trivial           | typo           | fixes                | in                    | the                   | file              | sama7g5.c                  |                          |             |                 |                |              |                 |
| 55c9731662b8 | staging:                         | wimax:                  | i2400m:           | Mundane        | typos                | fix                   | in                    | the               | file                       | tx.c                     |             |                 |                |              |                 |
| 2b0a9946bf9e | ata:                             | Trivial                 | spelling          | fixes          | in                   | the                   | file                  | pata_ns87415.c    |                            |                          |             |                 |                |              |                 |
| b469010d56d1 | soc:                             | qcom:                   | Fix               | typos          | in                   | the                   | file                  | qmi_encdec.c      |                            |                          |             |                 |                |              |                 |
| a04e3db5146e | iio:                             | proximity:              | sx9500:           | Fix            | a                    | spelling              | postive               | to                | positive                   |                          |             |                 |                |              |                 |
| 937da4fd2ca1 | media:                           | drivers:                | media:            | pci:           | cx18:                | Spelling              | fix                   | of                | minimze                    | to                       | minimize    | in              | the            | file         | cx18-av-audio.c |
| 611ce3395e34 | media:                           | drivers:                | media:            | pci:           | cx18:                | Couple                | of                    | spell             | fixes                      | in                       | the         | file            | cx18-av-core.c |              |                 |
| 911edeff2264 | media:                           | drivers/media/pci/cx18: | Fix               | a              | spelling             | minimze               | to                    | minimize          | in                         | the                      | file        | cx18-firmware.c |                |              |                 |
| 6b45fbfa5309 | media:                           | include:                | media:            | davinci:       | Fixed                | up                    | few                   | trivial           | spellings                  | in                       | the         | file            | isif.h         |              |                 |
| 34bb97512641 | net:                             | fddi:                   | skfp:             | Mundane        | typo                 | fixes                 | throughout            | the               | file                       | smt.h                    |             |                 |                |              |                 |
| c024e8f665c9 | MIPS:                            | BCM63xx:                | Spello            | fix            | in                   | the                   | file                  | clk.c             |                            |                          |             |                 |                |              |                 |
| 76d6329534ae | thermal:                         | Fix                     | couple            | of             | spellos              | in                    | the                   | file              | sun8i_thermal.c            |                          |             |                 |                |              |                 |
| 660680019200 | thermal:                         | Fix                     | a                 | typo           | in                   | the                   | file                  | soctherm.c        |                            |                          |             |                 |                |              |                 |
| 014ace23a5ec | scsi:                            | qla4xxx:                | Fix               | a              | typo                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 38860756a190 | KVM:                             | s390:                   | Fix               | comment        | spelling             | in                    | kvm_s390_vcpu_start() |                   |                            |                          |             |                 |                |              |                 |
| a5907065ac1a | docs:                            | livepatch:              | Fix               | a              | typo                 | and                   | remove                | the               | unnecessary                | gaps                     | in          | a               | sentence       |              |                 |
| a4813dc7baa4 | net:                             | ethernet:               | chelsio:          | inline_crypto: | Mundane              | typos                 | fixed                 | throughout        | the                        | file                     | chcr_ktls.c |                 |                |              |                 |
| f17a25cb1776 | crypto:                          | qat                     | -                 | fix            | spelling             | mistake:              | messge                | ->                | message                    |                          |             |                 |                |              |                 |
| abe4a3996e5f | docs:                            | sphinx:                 | Fix               | couple         | of                   | spellings             | in                    | the               | file                       | rstFlatTable.py          |             |                 |                |              |                 |
| 9317f356df83 | drm/i915/gvt:                    | Fixed                   | couple            | of             | spellings            | in                    | the                   | file              | gtt.c                      |                          |             |                 |                |              |                 |
| f9c8bc4604c9 | init/Kconfig:                    | fix                     | a                 | typo           | in                   | CC_VERSION_TEXT       | help                  | text              |                            |                          |             |                 |                |              |                 |
| 2896a27fdcd0 | Input:                           | alps                    | -                 | fix            | spelling             | of                    | positive              |                   |                            |                          |             |                 |                |              |                 |
| 1f9f22acbb5d | scsi:                            | aic79xx:                | Fix               | spelling       | of                   | version               |                       |                   |                            |                          |             |                 |                |              |                 |
| 3c2e0a489da6 | docs:                            | kernel-hacking:         | be                | more           | civil                |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| 1899e49385fd | brcmsmac:                        | Fix                     | the               | spelling       | configation          | to                    | configuration         | in                | the                        | file                     | d11.h       |                 |                |              |                 |
| 7cbe89398a78 | dt-bindings:                     | usb:                    | Change            | descibe        | to                   | describe              | in                    | usbmisc-imx.txt   |                            |                          |             |                 |                |              |                 |
| cfb28fde0837 | crypto:                          | xor                     | -                 | Fix            | typo                 | of                    | optimization          |                   |                            |                          |             |                 |                |              |                 |
| ea7826583f5e | powerpc/44x:                     | Fix                     | a                 | spelling       | mismach              | to                    | mismatch              | in                | head_44x.S                 |                          |             |                 |                |              |                 |
| 883c36a32fc0 | spi:                             | Change                  | provied           | to             | provided             | in                    | the                   | file              | spi.h                      |                          |             |                 |                |              |                 |
| 53b823b29aac | drivers:                         | net:                    | ethernet:         | i825xx:        | Fix                  | couple                | of                    | spellings         | in                         | the                      | file        | ether1.c        |                |              |                 |
| d021e0694d77 | doc:                             | devicetree:             | bindings:         | usb:           | Change               | descibe               | to                    | describe          | in                         | usbmisc-imx.txt          |             |                 |                |              |                 |
| a056aacd2df2 | arch:                            | mips:                   | kernel:           | Fix            | two                  | spelling              | in                    | smp.c             |                            |                          |             |                 |                |              |                 |
| 39bcdd6a964b | tracing:                         | Fix                     | spelling          | of             | controlling          | in                    | uprobes               |                   |                            |                          |             |                 |                |              |                 |
| 12b20ce34933 | net:                             | sunrpc:                 | xprtsock.c:       | Corrected      | few                  | spellings             | ,in                   | comments          |                            |                          |             |                 |                |              |                 |
| 6091b08eda85 | drivers:                         | base:                   | power:            | Fix            | resposible           | ->                    | responsible           | in                | runtime.c                  |                          |             |                 |                |              |                 |
| 10aa694ea0d0 | PM:                              | runtime:                | Fix               | resposible     | ->                   | responsible           | in                    | runtime.c         |                            |                          |             |                 |                |              |                 |
| 4d6a5a4b1e4a | crypto:                          | marvell/cesa            | -                 | Fix            | a                    | spelling              | s/fautly/faultly/     | in                | comment                    |                          |             |                 |                |              |                 |
| 2c82b7fe219a | net:                             | marvell:                | Fixed             | two            | spellings,controling | to                    | controlling           | and               | oen                        | to                       | one         |                 |                |              |                 |
| 9d54ee78aef6 | docs:                            | admin-guide:            | bootconfig:       | Fix            | feils                | to                    | fails                 |                   |                            |                          |             |                 |                |              |                 |
| 58315c966511 | kernel:                          | cgroup:                 | Mundane           | spelling       | fixes                | throughout            | the                   | file              |                            |                          |             |                 |                |              |                 |
| f4d4f53ffd90 | drivers:                         | amdgpu:                 | amdgpu_display:   | Fixed          | the                  | spelling              | of                    | falg              | to                         | flag                     |             |                 |                |              |                 |
| debbcf9f3b85 | drivers:                         | amdgpu:                 | amdgpu_display.c: | Fix            | a                    | spelling              | doens\'t              | to                | doesn\'t                   |                          |             |                 |                |              |                 |
| 06dc8d4591b8 | tools/nolibc:                    | Fix                     | a                 | spelling       | error                | in                    | a                     | comment           |                            |                          |             |                 |                |              |                 |
| 096f64905f0c | drivers:                         | staging:                | rtl8188eu:        | Fix            | spelling             | in                    | two                   | comments          | i.e                        | defalut                  | to          | default         |                |              |                 |
| 85bec4bc9198 | drivers:                         | net:                    | phy:              | Fix            | spelling             | in                    | comment               | defalut           | to                         | default                  |             |                 |                |              |                 |
| c07a013a28ae | drivers:                         | amdgpu:                 | Correct           | spelling       | defalut              | to                    | default               | in                | comment                    |                          |             |                 |                |              |                 |
| 363a7ac4adec | docs:                            | fb:                     | Remove            | vesafb         | scrollback           | boot                  | option                |                   |                            |                          |             |                 |                |              |                 |
| fd4aa21351a7 | docs:                            | fb:                     | Remove            | sstfb          | scrollback           | boot                  | option                |                   |                            |                          |             |                 |                |              |                 |
| 036e13d015d2 | docs:                            | fb:                     | Remove            | matroxfb       | scrollback           | boot                  | option                |                   |                            |                          |             |                 |                |              |                 |
| cc3c2a623126 | docs:                            | fb:                     | Remove            | framebuffer    | scrollback           | boot                  | option                |                   |                            |                          |             |                 |                |              |                 |
| cb66eb11da65 | docs/mm:                         | concepts.rst:           | remove            | unnecessary    | word                 |                       |                       |                   |                            |                          |             |                 |                |              |                 |
| dff2c2e69f30 | Replace                          | dead                    | urls              | with           | active               | urls                  | for                   | Mutt              |                            |                          |             |                 |                |              |                 |
| faade9610246 | scripts/ver_linux:               | add                     | Bison             | and            | Flex                 | to                    | the                   | checklist         |                            |                          |             |                 |                |              |                 |
| 3c96bdd0ebfa | scripts:                         | setlocalversion:        | replace           | backquote      | to                   | dollar                | parenthesis           |                   |                            |                          |             |                 |                |              |                 |
http://unixbhaskar.wordpress.com/?p=1983
Extensions
Linux Firmware Update Send To Upstream
GNU/LinuxTechnical Linux Firmware Opensource
Well, from time to time, we need to update the system firmware for the sake of system stability and usability in a smooth way. And doing so was quite an involved process back in the days. I used to get the damn update from their website and install/flash it by hand( purely sitting on Linux […]
Show full content

Well, from time to time, we need to update the system firmware for the sake of system stability and usability in a smooth way. And doing so was quite an involved process back in the days. I used to get the damn update from their website and install/flash it by hand( purely sitting on Linux ), and it worked all the time due to some good fortune and the meticulous way it had been designed.

Now,you could do so with even more ease and precision to not only update the damn machine but also send the stuff to the well-maintained upstream places for better manageability.

So, in this post, I will gloss over what I have used of late to make my system firmware updated with a series of mundane command-line options put together in a shell script file to do it all at once.

Here it is for your perusal for the entirety …darn simple

#!/usr/bin/env bash

printf "Updating firmware of the system ...wait ... \n\n"

#This will display all devices detected by fwupd.
 fwupdmgr get-devices

#This will download the latest metadata from LVFS.
 fwupdmgr refresh

#If updates are available for any devices on the system, they'll be displayed.
 fwupdmgr get-updates

#To report the status of an update run:
 fwupdmgr update

# This will report the history of update run previously
 fwupdmgr report-history

# To clear the local history of updates:

# fwupdmgr clear-history

Oh, you have to have the fwupdmgr thing to installed in the system. No big deal, all the major OS repos have it in their arsenal. It’s just a matter of getting it through your OS package manager.

If you give it a glance at the above series of commands and especially the second last command, i.e. fwupdmgr report-history will ask you to upload your system updated information to be inducted into the global database it maintains online.

Here is an interaction :

fwupdmgr report-history


#+RESULTS:
| Target:                                   | https://fwupd.org/lvfs/firmware/report |                                                                     |         |          |              |          |        |            |
| Payload:                                  | {                                      |                                                                     |         |          |              |          |        |            |
| ReportType                                | :                                      | "history",                                                          |         |          |              |          |        |            |
| ReportVersion                             | :                                      | 2,                                                                  |         |          |              |          |        |            |
| MachineId                                 | :                                      | "2febc73dda5ac1c9e564cf48c95e50620fe161f2499247b2fd378de441042b8e", |         |          |              |          |        |            |
| Metadata                                  | :                                      | {                                                                   |         |          |              |          |        |            |
| CompileVersion(info.libusb)               | :                                      | "1.0.29",                                                           |         |          |              |          |        |            |
| HostBiosMinorRelease                      | :                                      | "0b",                                                               |         |          |              |          |        |            |
| HostFirmwareMinorRelease                  | :                                      | "0b",                                                               |         |          |              |          |        |            |
| DisplayState                              | :                                      | "connected",                                                        |         |          |              |          |        |            |
| DistroId                                  | :                                      | "gentoo",                                                           |         |          |              |          |        |            |
| HostBaseboardProduct                      | :                                      | "LNVNB161216",                                                      |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| EfivarsNvramUsed                          | :                                      | "49546",                                                            |         |          |              |          |        |            |
| HostBiosVendor                            | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| PlatformArchitecture                      | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| HostBiosMajorRelease                      | :                                      | "01",                                                               |         |          |              |          |        |            |
| CompileVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| HostBaseboardManufacturer                 | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| EfivarsNvramFree                          | :                                      | "106907",                                                           |         |          |              |          |        |            |
| CpuModel                                  | :                                      | "AMD                                                                | Ryzen   | 7        | 5700U        | with     | Radeon | Graphics", |
| KernelName                                | :                                      | "Linux",                                                            |         |          |              |          |        |            |
| BootTime                                  | :                                      | "1765785696",                                                       |         |          |              |          |        |            |
| HostProduct                               | :                                      | "82UD",                                                             |         |          |              |          |        |            |
| HostFirmwareMajorRelease                  | :                                      | "01",                                                               |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd-efi) | :                                      | "1.7",                                                              |         |          |              |          |        |            |
| BatteryThreshold                          | :                                      | "25",                                                               |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| LidState                                  | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| DistroName                                | :                                      | "Gentoo",                                                           |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| FwupdSupported                            | :                                      | "True",                                                             |         |          |              |          |        |            |
| DistroPrettyName                          | :                                      | "Gentoo                                                             | Linux", |          |              |          |        |            |
| PowerState                                | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| KernelVersion                             | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| HostVendor                                | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostBiosVersion                           | :                                      | "JECN11WW(V1.04)",                                                  |         |          |              |          |        |            |
| HostFamily                                | :                                      | "Yoga                                                               | 6       | 13ALC7", |              |          |        |            |
| BatteryLevel                              | :                                      | "101",                                                              |         |          |              |          |        |            |
| CpuArchitecture                           | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| RuntimeVersion(org.kernel)                | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroVersion                             | :                                      | "2.18",                                                             |         |          |              |          |        |            |
| HostSku                                   | :                                      | "LENOVO_MT_82UD_BU_idea_FM_Yoga                                     | 6       | 13ALC7", |              |          |        |            |
| HostEnclosureKind                         | :                                      | 1f                                                                  |         |          |              |          |        |            |
| },                                        |                                        |                                                                     |         |          |              |          |        |            |
| Reports                                   | :                                      | [                                                                   |         |          |              |          |        |            |
| {                                         |                                        |                                                                     |         |          |              |          |        |            |
| Checksum                                  | :                                      | "168b8c108e18a0b61ff8228d56d28d4739eff055ef26022c64c9335e78a2dc33", |         |          |              |          |        |            |
| ReleaseId                                 | :                                      | "114097",                                                           |         |          |              |          |        |            |
| Protocol                                  | :                                      | "org.uefi.dbx2",                                                    |         |          |              |          |        |            |
| UpdateState                               | :                                      | 2,                                                                  |         |          |              |          |        |            |
| Guid                                      | :                                      | [                                                                   |         |          |              |          |        |            |
| 814e950f-1449-566a-a190-42c9d3a3a2df      |                                        |                                                                     |         |          |              |          |        |            |
| ],                                        |                                        |                                                                     |         |          |              |          |        |            |
| Plugin                                    | :                                      | "uefi_kek",                                                         |         |          |              |          |        |            |
| VersionOld                                | :                                      | "2011",                                                             |         |          |              |          |        |            |
| VersionNew                                | :                                      | "2023",                                                             |         |          |              |          |        |            |
| Flags                                     | :                                      | 4644337656791331,                                                   |         |          |              |          |        |            |
| Created                                   | :                                      | 1765784803,                                                         |         |          |              |          |        |            |
| Modified                                  | :                                      | 1765784848,                                                         |         |          |              |          |        |            |
| Metadata                                  | :                                      | {                                                                   |         |          |              |          |        |            |
| CompileVersion(info.libusb)               | :                                      | "1.0.29",                                                           |         |          |              |          |        |            |
| HostBiosMinorRelease                      | :                                      | "0b",                                                               |         |          |              |          |        |            |
| HostFirmwareMinorRelease                  | :                                      | "0b",                                                               |         |          |              |          |        |            |
| CompileVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroId                                  | :                                      | "gentoo",                                                           |         |          |              |          |        |            |
| HostBaseboardProduct                      | :                                      | "LNVNB161216",                                                      |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| EfivarsNvramUsed                          | :                                      | "42169",                                                            |         |          |              |          |        |            |
| HostBiosVendor                            | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| PlatformArchitecture                      | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| HostBiosMajorRelease                      | :                                      | "01",                                                               |         |          |              |          |        |            |
| DisplayState                              | :                                      | "connected",                                                        |         |          |              |          |        |            |
| HostBaseboardManufacturer                 | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| EfivarsNvramFree                          | :                                      | "25140",                                                            |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd-efi) | :                                      | "1.7",                                                              |         |          |              |          |        |            |
| KernelName                                | :                                      | "Linux",                                                            |         |          |              |          |        |            |
| BatteryThreshold                          | :                                      | "25",                                                               |         |          |              |          |        |            |
| HostProduct                               | :                                      | "82UD",                                                             |         |          |              |          |        |            |
| HostFirmwareMajorRelease                  | :                                      | "01",                                                               |         |          |              |          |        |            |
| BootTime                                  | :                                      | "1765751272",                                                       |         |          |              |          |        |            |
| CpuModel                                  | :                                      | "AMD                                                                | Ryzen   | 7        | 5700U        | with     | Radeon | Graphics", |
| KernelVersion                             | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| FwupdSupported                            | :                                      | "True",                                                             |         |          |              |          |        |            |
| LidState                                  | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| DistroName                                | :                                      | "Gentoo",                                                           |         |          |              |          |        |            |
| UefiPkKeyId                               | :                                      | "ae3bb84d4581781587a40e4315b48df56938ff6c",                         |         |          |              |          |        |            |
| BatteryLevel                              | :                                      | "101",                                                              |         |          |              |          |        |            |
| DistroPrettyName                          | :                                      | "Gentoo                                                             | Linux", |          |              |          |        |            |
| PowerState                                | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| HostVendor                                | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostBiosVersion                           | :                                      | "JECN11WW(V1.04)",                                                  |         |          |              |          |        |            |
| HostFamily                                | :                                      | "Yoga                                                               | 6       | 13ALC7", |              |          |        |            |
| CpuArchitecture                           | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| RuntimeVersion(org.kernel)                | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroVersion                             | :                                      | "2.18",                                                             |         |          |              |          |        |            |
| HostSku                                   | :                                      | "LENOVO_MT_82UD_BU_idea_FM_Yoga                                     | 6       | 13ALC7", |              |          |        |            |
| HostEnclosureKind                         | :                                      | 1f                                                                  |         |          |              |          |        |            |
| }                                         |                                        |                                                                     |         |          |              |          |        |            |
| },                                        |                                        |                                                                     |         |          |              |          |        |            |
| {                                         |                                        |                                                                     |         |          |              |          |        |            |
| Checksum                                  | :                                      | "6819c8098f09f4332a102194df6a033563aa288073b16315c5b88860fefb7e74", |         |          |              |          |        |            |
| ReleaseId                                 | :                                      | "116503",                                                           |         |          |              |          |        |            |
| Protocol                                  | :                                      | "org.uefi.dbx2",                                                    |         |          |              |          |        |            |
| UpdateState                               | :                                      | 2,                                                                  |         |          |              |          |        |            |
| Guid                                      | :                                      | [                                                                   |         |          |              |          |        |            |
| 26f42cba-9bf6-5365-802b-e250eb757e96      |                                        |                                                                     |         |          |              |          |        |            |
| ],                                        |                                        |                                                                     |         |          |              |          |        |            |
| Plugin                                    | :                                      | "uefi_db",                                                          |         |          |              |          |        |            |
| VersionOld                                | :                                      | "2011",                                                             |         |          |              |          |        |            |
| VersionNew                                | :                                      | "2023",                                                             |         |          |              |          |        |            |
| Flags                                     | :                                      | 4644337119920419,                                                   |         |          |              |          |        |            |
| Created                                   | :                                      | 1765784803,                                                         |         |          |              |          |        |            |
| Modified                                  | :                                      | 1765784870,                                                         |         |          |              |          |        |            |
| Metadata                                  | :                                      | {                                                                   |         |          |              |          |        |            |
| CompileVersion(info.libusb)               | :                                      | "1.0.29",                                                           |         |          |              |          |        |            |
| HostBiosMinorRelease                      | :                                      | "0b",                                                               |         |          |              |          |        |            |
| HostFirmwareMinorRelease                  | :                                      | "0b",                                                               |         |          |              |          |        |            |
| CompileVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroId                                  | :                                      | "gentoo",                                                           |         |          |              |          |        |            |
| HostBaseboardProduct                      | :                                      | "LNVNB161216",                                                      |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| EfivarsNvramUsed                          | :                                      | "43675",                                                            |         |          |              |          |        |            |
| HostBiosVendor                            | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| PlatformArchitecture                      | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| HostBiosMajorRelease                      | :                                      | "01",                                                               |         |          |              |          |        |            |
| DisplayState                              | :                                      | "connected",                                                        |         |          |              |          |        |            |
| HostBaseboardManufacturer                 | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| EfivarsNvramFree                          | :                                      | "22006",                                                            |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd-efi) | :                                      | "1.7",                                                              |         |          |              |          |        |            |
| KernelName                                | :                                      | "Linux",                                                            |         |          |              |          |        |            |
| BatteryThreshold                          | :                                      | "25",                                                               |         |          |              |          |        |            |
| HostProduct                               | :                                      | "82UD",                                                             |         |          |              |          |        |            |
| HostFirmwareMajorRelease                  | :                                      | "01",                                                               |         |          |              |          |        |            |
| BootTime                                  | :                                      | "1765751272",                                                       |         |          |              |          |        |            |
| CpuModel                                  | :                                      | "AMD                                                                | Ryzen   | 7        | 5700U        | with     | Radeon | Graphics", |
| KernelVersion                             | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| FwupdSupported                            | :                                      | "True",                                                             |         |          |              |          |        |            |
| LidState                                  | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| DistroName                                | :                                      | "Gentoo",                                                           |         |          |              |          |        |            |
| UefiPkKeyId                               | :                                      | "ae3bb84d4581781587a40e4315b48df56938ff6c",                         |         |          |              |          |        |            |
| BatteryLevel                              | :                                      | "101",                                                              |         |          |              |          |        |            |
| DistroPrettyName                          | :                                      | "Gentoo                                                             | Linux", |          |              |          |        |            |
| PowerState                                | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| HostVendor                                | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostBiosVersion                           | :                                      | "JECN11WW(V1.04)",                                                  |         |          |              |          |        |            |
| HostFamily                                | :                                      | "Yoga                                                               | 6       | 13ALC7", |              |          |        |            |
| CpuArchitecture                           | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| RuntimeVersion(org.kernel)                | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroVersion                             | :                                      | "2.18",                                                             |         |          |              |          |        |            |
| HostSku                                   | :                                      | "LENOVO_MT_82UD_BU_idea_FM_Yoga                                     | 6       | 13ALC7", |              |          |        |            |
| HostEnclosureKind                         | :                                      | 1f                                                                  |         |          |              |          |        |            |
| }                                         |                                        |                                                                     |         |          |              |          |        |            |
| },                                        |                                        |                                                                     |         |          |              |          |        |            |
| {                                         |                                        |                                                                     |         |          |              |          |        |            |
| Checksum                                  | :                                      | "7178302fa23fcb875e7540900e299fb30a76758663efb7e1c56edc25cd3f316a", |         |          |              |          |        |            |
| ReleaseId                                 | :                                      | "130035",                                                           |         |          |              |          |        |            |
| Protocol                                  | :                                      | "org.uefi.dbx2",                                                    |         |          |              |          |        |            |
| UpdateState                               | :                                      | 2,                                                                  |         |          |              |          |        |            |
| InstallDuration                           | :                                      | 7,                                                                  |         |          |              |          |        |            |
| Guid                                      | :                                      | [                                                                   |         |          |              |          |        |            |
| f8ba2887-9411-5c36-9cee-88995bb39731      |                                        |                                                                     |         |          |              |          |        |            |
| ],                                        |                                        |                                                                     |         |          |              |          |        |            |
| Plugin                                    | :                                      | "uefi_dbx",                                                         |         |          |              |          |        |            |
| VersionOld                                | :                                      | "20230501",                                                         |         |          |              |          |        |            |
| VersionNew                                | :                                      | "20250902",                                                         |         |          |              |          |        |            |
| Flags                                     | :                                      | 4653133749813539,                                                   |         |          |              |          |        |            |
| Created                                   | :                                      | 1765784803,                                                         |         |          |              |          |        |            |
| Modified                                  | :                                      | 1765784897,                                                         |         |          |              |          |        |            |
| Metadata                                  | :                                      | {                                                                   |         |          |              |          |        |            |
| CompileVersion(info.libusb)               | :                                      | "1.0.29",                                                           |         |          |              |          |        |            |
| HostBiosMinorRelease                      | :                                      | "0b",                                                               |         |          |              |          |        |            |
| HostFirmwareMinorRelease                  | :                                      | "0b",                                                               |         |          |              |          |        |            |
| CompileVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroId                                  | :                                      | "gentoo",                                                           |         |          |              |          |        |            |
| HostBaseboardProduct                      | :                                      | "LNVNB161216",                                                      |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| CompileVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| EfivarsNvramUsed                          | :                                      | "46670",                                                            |         |          |              |          |        |            |
| HostBiosVendor                            | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostBiosMajorRelease                      | :                                      | "01",                                                               |         |          |              |          |        |            |
| PlatformArchitecture                      | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| DisplayState                              | :                                      | "connected",                                                        |         |          |              |          |        |            |
| BootloaderSupportsFwupd                   | :                                      | "False",                                                            |         |          |              |          |        |            |
| EfivarsNvramFree                          | :                                      | "9449",                                                             |         |          |              |          |        |            |
| CpuModel                                  | :                                      | "AMD                                                                | Ryzen   | 7        | 5700U        | with     | Radeon | Graphics", |
| KernelName                                | :                                      | "Linux",                                                            |         |          |              |          |        |            |
| BatteryThreshold                          | :                                      | "25",                                                               |         |          |              |          |        |            |
| HostProduct                               | :                                      | "82UD",                                                             |         |          |              |          |        |            |
| HostFirmwareMajorRelease                  | :                                      | "01",                                                               |         |          |              |          |        |            |
| BootTime                                  | :                                      | "1765751272",                                                       |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd-efi) | :                                      | "1.7",                                                              |         |          |              |          |        |            |
| KernelVersion                             | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libxmlb)       | :                                      | "0.3.21",                                                           |         |          |              |          |        |            |
| LidState                                  | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| DistroName                                | :                                      | "Gentoo",                                                           |         |          |              |          |        |            |
| RuntimeVersion(com.hughsie.libjcat)       | :                                      | "0.2.3",                                                            |         |          |              |          |        |            |
| UefiPkKeyId                               | :                                      | "ae3bb84d4581781587a40e4315b48df56938ff6c",                         |         |          |              |          |        |            |
| FwupdSupported                            | :                                      | "True",                                                             |         |          |              |          |        |            |
| DistroPrettyName                          | :                                      | "Gentoo                                                             | Linux", |          |              |          |        |            |
| PowerState                                | :                                      | "unknown",                                                          |         |          |              |          |        |            |
| HostVendor                                | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostBiosVersion                           | :                                      | "JECN11WW(V1.04)",                                                  |         |          |              |          |        |            |
| HostFamily                                | :                                      | "Yoga                                                               | 6       | 13ALC7", |              |          |        |            |
| BatteryLevel                              | :                                      | "101",                                                              |         |          |              |          |        |            |
| SecureBoot                                | :                                      | "Disabled",                                                         |         |          |              |          |        |            |
| CpuArchitecture                           | :                                      | "x86_64",                                                           |         |          |              |          |        |            |
| UEFIUXCapsule                             | :                                      | "Enabled",                                                          |         |          |              |          |        |            |
| BootMgrDesc                               | :                                      | "legacy",                                                           |         |          |              |          |        |            |
| RuntimeVersion(org.kernel)                | :                                      | "6.18.1-Gentoo",                                                    |         |          |              |          |        |            |
| RuntimeVersion(org.freedesktop.fwupd)     | :                                      | "2.0.16",                                                           |         |          |              |          |        |            |
| DistroVersion                             | :                                      | "2.18",                                                             |         |          |              |          |        |            |
| HostBaseboardManufacturer                 | :                                      | "LENOVO",                                                           |         |          |              |          |        |            |
| HostSku                                   | :                                      | "LENOVO_MT_82UD_BU_idea_FM_Yoga                                     | 6       | 13ALC7", |              |          |        |            |
| HostEnclosureKind                         | :                                      | 1f                                                                  |         |          |              |          |        |            |
| }                                         |                                        |                                                                     |         |          |              |          |        |            |
| }                                         |                                        |                                                                     |         |          |              |          |        |            |
| ]                                         |                                        |                                                                     |         |          |              |          |        |            |
| }                                         |                                        |                                                                     |         |          |              |          |        |            |





Procee with upload?   [Y | n]:

Now it is prompting me to agree to upload the information to the upstream. And I did.

But, where is it maintained? You should be looking at this website : Linux Vendor Firmware Service

And this was initiated and maintained by a person named Richard Hughes.

http://unixbhaskar.wordpress.com/?p=1981
Extensions
Fedora DNF Toml Files Corruption Problem And Dirty Fix
GNU/LinuxTechnical OperatingSystem Fedora DNF Redhat IBM Opensource
Bloody hell …..irks….son of a gun has corrupted files stopping the damn OS update…sigh Here is the problem : [root@fedora43 ~]# dnf update Updating and loading repositories: Loading system state TOML file /usr/lib/sysimage/libdnf5/nevras.toml failed (see dnf5-system-state(7)): [error] toml::value::at: key "version" not found --> /usr/lib/sysimage/libdnf5/nevras.toml | 0 | | -- in this table Now, if you […]
Show full content

Bloody hell …..irks….son of a gun has corrupted files stopping the damn OS update…sigh

Here is the problem :

[root@fedora43 ~]# dnf update
Updating and loading repositories:
Loading system state TOML file /usr/lib/sysimage/libdnf5/nevras.toml failed (see dnf5-system-state(7)): [error] toml::value::at: key "version" not found
 --> /usr/lib/sysimage/libdnf5/nevras.toml
  |
 0 |
  | -- in this table

Now, if you backup that file and re-run the update command it will prompt for another file under that specific directory and with toml file extension has problem.

So, you have to backup all the toml file and re-run the update command, and it will generated the required files.

I have bumped on to this page on GITHUB DNF5 ISSUE DISCUSSION .

Oh, I was experimenting the Fedora Server Image of release 43 and got the qcow2 image from their designated site. Essentially running under qemu on Gentoo .

This is how I launch the damn thing :

#!/usr/bin/env bash

sudo qemu-system-x86_64 -m 4096 -smp 5 -bios /usr/share/edk2-ovmf/OVMF_CODE.fd -serial mon:stdio -nographic -drive file=Fedora-Server-Guest-Generic-43-1.6.x86_64.qcow2 -enable-kvm

You see….pretty simple.

http://unixbhaskar.wordpress.com/?p=1978
Extensions
Learn Sparse and Smatch For Your Own Sake To Do Better
GNU/LinuxTechnical Tools Opensource Linux
Well, a stern heads up to make things clear in the very first place, i.e. it is not for everyone to acquire the skill to use these tools, but for the people who are fiddling with the Linux Kernel for their bread and butter’s sake. Clear?? Now, the picture is cleared up,jump into the next […]
Show full content

Well, a stern heads up to make things clear in the very first place, i.e. it is not for everyone to acquire the skill to use these tools, but for the people who are fiddling with the Linux Kernel for their bread and butter’s sake. Clear??

Now, the picture is cleared up,jump into the next topic, what’s the point of deepening your feet into these? The short answer will be that you will be better equipped with tools that are heavily used in the Linux Kernel Development parlance to make things better and easier and sometimes stop things from being done crazily.

First, Sparse was written by Linus Torvalds, just to justify to his very own needs and then the damn thing proliferates to bring benefit to others over time.

It is essentially a Static Analysis tool, and you are inclined enough to know and use it with the Linux Kernel build process, then you might take a peek at this doc1 pages for the mortals.

Okay, I am not gonna repeat the steps to get the damn thing and build, which are clearly mentioned in the footnote link, click on it and read the damn thing, pretty darn simple.

But….but I must show you, how you could use it to build the Linux Kernel via make flag…

Here is the Linux Kernel specific Sparse documentation2 page, which might give you more detailed stuff you should know.

While building the Linux Kernel pass a C=1 as an argument to make to get all the C files recompiled OR pass a C=2 to run Sparse on files whether they need to recompiled or not.

Here is even more simpler use scenario straight from the Linux Kernel Newbies Website 3 page.

2025-09-19-025058_1017x412_scrot.png

Alright, now onto our second tool, that is Smatch, which is maintained by Dan Carpenter, and you could get the damn software from the Smatch Repo4.

Now, how do you use it while building the kernel or individually on a specific piece you are interested in? Here is how..

Once you have downloaded the stuff, then you focus on this specific directory in the repo and scripts/programs and inspect them to understand

ls ~/git-linux/smatch/smatch_scripts/
#+RESULTS:
| add_gfp_to_allocations.sh    |
| build_generic_data.sh        |
| build_kernel_data.sh         |
| call_tree.pl                 |
| filter_kernel_deref_check.sh |
| find_expanded_holes.pl       |
| find_null_params.sh          |
| follow_params.pl             |
| gen_allocation_list.sh       |
| gen_bit_shifters.sh          |
| gen_dma_funcs.sh             |
| gen_err_ptr_list.sh          |
| gen_expects_err_ptr.sh       |
| gen_frees_list.sh            |
| gen_gfp_flags.sh             |
| gen_implicit_dependencies.sh |
| gen_no_return_funcs.sh       |
| gen_puts_list.sh             |
| gen_rosenberg_funcs.sh       |
| gen_sizeof_param.sh          |
| gen_unwind_functions.sh      |
| generisize.pl                |
| implicit_dependencies        |
| kchecker                     |
| kpatch.sh                    |
| new_bugs.pl                  |
| show_errs.sh                 |
| show_ifs.sh                  |
| show_unreachable.sh          |
| strip_whitespace.pl          |
| summarize_errs.sh            |
| test_generic.sh              |
| test_kernel.sh               |
| trace_params.pl              |
| unlocked_paths.pl            |
| whitespace_only.sh           |
| wine_checker.sh              |

This is a good source, straight from the horse’s mouth, Oracle’s Blog about Smatch5

2025-09-19-031442_713x569_scrot.png

Footnotes: 1 Sparse Web Page Linux Kernel Sparse Documentation 3 Linux Kernel Newbies Sparse Documentation 4 Smatch Website 5 Oracle’s Blog Written By Dan Carpenter about Smatch

http://unixbhaskar.wordpress.com/?p=1974
Extensions
Git Is Bloody Good But My Usage Is Very Limited
GNU/LinuxTechnical Opensource Tools Linux Git
So, am I handicapped by those limitations? Nope, certainly not. I am using it to the best of my knowledge and, importantly, where it is needed most.No, fancy fluff or over-reaching stuff with it. Here in this post, I will show you a few of those actions with it, which almost becomes part and parcel […]
Show full content

So, am I handicapped by those limitations? Nope, certainly not. I am using it to the best of my knowledge and, importantly, where it is needed most.No, fancy fluff or over-reaching stuff with it.

Here in this post, I will show you a few of those actions with it, which almost becomes part and parcel of daily life using this damn very tool.

The Linux kernel is the project where I spend most of my time figuring out things, which become difficult for me, because of my lackluster academics( you see the shortcoming! Right?). Never mind, I will go the merry way to accomplish some task with my limited ability to use it.

Now, some complexity of Git stumped me when I started with it, and still bothers me beyond certain points of use. Mostly the reason being lackluster understanding putting that damn thing work. Anyway, I am somehow scratching the surface of it to get the tool to do the job I wanted to do with it.

But apart from spending the majority of time with the Linux Kernel repository, and it has various others too, which means it has several other projects associated with it, that too gobbles up time, worth it for me.

A few of the open-source projects interest me, and those projects also have their source code kept with git. So, I had to have them look through to quench my thirst to know.

My git home directory looks like this:

ls ~/git-linux/
#+RESULTS:
| AdminScripts                            |
| Collected_Notes                         |
| Debian_Custom_Kernel_Packages           |
| Distro_Kernel_Compile_Scripts           |
| FlameGraph                              |
| amazon-kindle-bulk-downloader           |
| asm                                     |
| busybox                                 |
| coreboot                                |
| curl                                    |
| debian_kernel_build                     |
| debootstrap                             |
| dotfiles                                |
| emacs                                   |
| flocc                                   |
| gcc                                     |
| git-cinnabar                            |
| git_github_fork                         |
| linux                                   |
| linux-history                           |
| linux-kbuild                            |
| linux-next                              |
| linux-stable                            |
| linux_github_fork                       |
| llvm-project                            |
| mwm                                     |
| pahole                                  |
| smatch                                  |
| sotrace                                 |
| sourcehut-adminscript                   |
| sourcehut-distribution-specific-scripts |
| sourcehut-dotfiles                      |
| sparse                                  |
| util-linux                              |
| vim                                     |

You see, nothing exciting keeps there, only a handful of stuff that interests me. And a few of them I haven’t evicted out, because the purpose was done, and I couldn’t find a time to do the cleanup. Someday …..

I have written about my gitconfig and some tools I have used with it for convenience. So, not going to repeat that stuff.

The only downside of using Git is that the more I read about it, the more I get confused. You see the pattern?? All stem from the reason, which I have mentioned above. Especially when people draw CDAG with a picture, it confuses me even more. Textual stuff somehow consumable but graphical shit are most of the time unfathomable. Nope, it is my lacuna to get those fancy and well-explained things via graphics.

While using it for some time, it gave me an insight into using it the way I want to use it. So, the usage of the sub-commands is very limited. And handful of Aliases see me through the day. The trouble is that having too many aliases in the shell and git creates a problem of forgetting them quickly. Despite being given the human-understandable and readable names. So, keeping those to a minimum is a challenge in itself.

But, my workflow and usage of tools are limited and I have written about them in the past. So, the activity will limited too, just cut for my need, period.

I have made close integration with a tool named fzf, so I can conveniently use some functionality. Git brings the power of doing things way specific to the source control way. Online hosting sites (i.e., Github, Gitlab and Bitbucket, and Sourcehut) all have their place in that parlance, and I do use all of them. Basically, to replicate my repositories across them.

Conflicting stuff in Git takes some time to mitigate. And that endeavor gobbles up some of the people’s time, including mine. Not git fault though, my inability to get it overtook me, some taking. I still fumble with it, time to time, just like other parts of it. It is a damn steep learning curve and the damn curve get over me time to time.

The easiest part of it is writing pre- and post-automation scripts. But, wait, it depends on how badly you are screwed up in the repo and when something beyond your control use it. I have written the word easiest in the sense that some of git’s operations are bloody complicated, at least to me. And those need way more understanding than other things in git. To give you an example of complexity, that every damn commit have three entry in the internal database. Phew! Knowing how to get them is an art.

So, knowing the internal might help in the long run. And to this date, I have covered very little ground with it.

http://unixbhaskar.wordpress.com/?p=1969
Extensions
Debian Way Of Doing Little Things
GNU/LinuxTechnical Opensource OperatingSystem Debian Linux Tools ShellScripts
Alrighto! Here I am gonna show you two little pieces of hand made utility to do something very specific to Debian Linux Operating System1. One: How to show installed packages WITH TIME #!/usr/bin/env bash pkglist() { dpkg-query -W -f='${Package} ${db-fsys:Last-Modified}\n' | sort -k2,2nr | awk '{printf("%-32s %s\n", $1,strftime("%c",$2))}' } pkglist Darn simple! Right? It simply […]
Show full content

Alrighto! Here I am gonna show you two little pieces of hand made utility to do something very specific to Debian Linux Operating System1.

One:

How to show installed packages WITH TIME
#!/usr/bin/env bash

pkglist() {
        dpkg-query -W -f='${Package} ${db-fsys:Last-Modified}\n' | sort -k2,2nr | awk '{printf("%-32s %s\n", $1,strftime("%c",$2))}'
}

pkglist

Darn simple! Right? It simply calling dpkg-query with various flags and importantly getting the information from variables.Look at the AWK2 part, you see it is calling strftime , that damn thing helps to get the time.

Oh, here is the dpkg-query3 options means, if you are lazy enough 🙂

2025-06-22-034538_1920x107_scrot.png

The %c options of the strftime4 function has the description like this:

2025-06-22-035014_1920x105_scrot.png

Second:

How to fix the BROKEN package configuration

Say, something has broken, in terms of package installation in Debian, then one of the way to fix the damn thing might be this :

#!/usr/bin/env bash

reconfig() {
    if [[ -z "$1" ]]; then
        echo "Usage: reconfig <package-name>"
        return 1
    fi
     sudo apt-get -o Dpkg::Options::='--force-confnew' install --reinstall "$1"
}

A simple script like this might come in handy. Let me distill the specific command parts, that -o option of apt-get5

2025-06-22-040126_1920x115_scrot.png

and the rest of the options are common options people also use for various other reasons. This script needs the package-name as an argument to work with.

Footnotes: 1 Debian Linux Operating System Website 2 AWK Manual Page 3 dpkg-query Manual Page 4 strftime Manual Page 5 apt-get Manual Page

http://unixbhaskar.wordpress.com/?p=1965
Extensions
How To Run FreeBSD In A Virtual Machine On Different Linux Distributions
GNU/LinuxTechnical Linux Opensource Tools qemu FreeBSD OperatingSystem
Alright, time to time I have experimented with stuff that is either not practical or has some sort of real value in life. The latest being, attempted to run FreeBSD1 in a virtual machine(via qemu2) sitting on Linux(Various distributions). Oh, I have been running FreeBSD on actual slice(meaning, a physical disk partition) along with other […]
Show full content

Alright, time to time I have experimented with stuff that is either not practical or has some sort of real value in life. The latest being, attempted to run FreeBSD1 in a virtual machine(via qemu2) sitting on Linux(Various distributions).

Oh, I have been running FreeBSD on actual slice(meaning, a physical disk partition) along with other Linux distributions for quite some time.(years!)

Then why this endeavor? I am curious about the outcome and deployment effect of this practice.

So, What did I do? Let me show my atrociously written script for automating that damn thing(means, running FreeBSD in a VM) with minimal fuss.

#!/usr/bin/env bash
#===============================================================================
#
#          FILE: freebsd_vm.sh
#
#         USAGE: ./freebsd_vm.sh
#
#   DESCRIPTION: Run FreeBSD inside a virtual machine on Linux
#
#       OPTIONS:
#  REQUIREMENTS: qemu FreeBSD-ISO qcow2 images ovmf(for UEFI bios)
#          BUGS: ---
#         NOTES: https://download.freebsd.org/releases/VM-IMAGES/14.2-RELEASE/amd64/Latest/
#        AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com
#  ORGANIZATION: Independent
#       CREATED: 04/20/2025 03:55
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

basepath=/home/bhaskar/FreeBSD

cd $basepath || exit 1

if test "$(uname -n)" == "debian";then
sudo qemu-system-x86_64 -m 4096 -smp 5 -bios /usr/share/ovmf/OVMF.fd -serial mon:stdio -nographic -drive file=FreeBSD-14.2-RELEASE-amd64.qcow2 -enable-kvm
elif test "$(uname -n)" == "Gentoo";then
sudo qemu-system-x86_64 -m 4096 -smp 5 -bios /usr/share/edk2-ovmf/OVMF_CODE.fd -serial mon:stdio -nographic -drive file=FreeBSD-14.2-RELEASE-amd64.qcow2 -enable-kvm
elif test "$(uname -n)" == "ArchLinux";then
sudo qemu-system-x86_64 -m 4096 -smp 5 -bios /usr/share/edk2-ovmf/x64/OVMF.4m.fd -serial mon:stdio -nographic -drive file=FreeBSD-14.2-RELEASE-amd64.qcow2 -enable-kvm
else
        echo Nothing match.
fi


# To exit out of VM you should press these keys : CTRL-A x

# The -m 4096 option indicates the VM should have 4 gigabytes of system memory.

# The -smp 4 option indicates the VM should have 4 CPU cores.

# The -bios /usr/share/ovmf/OVMF.fd option indicates the VM should boot with UEFI.

# The -serial mon:stdio option indicates the VM should use your pseudo terminal as the serial terminal.

# The -nographic option indicates the VM should not have a display.

# The -drive <image> option indicates our VM image to boot.

# The -enable-kvm option indicates the VM should use Linux’s hardware acceleration.


# steps to follow for running FreeBSD in VM on Linux

# Get the qcow2 image
#
# wget -c  https://download.freebsd.org/releases/VM-IMAGES/14.2-RELEASE/amd64/Latest/FreeBSD-14.2-RELEASE-amd64.qcow2.xz
#

# Install ovmf and qemu-utils by your os package manager


# unxz to downloaded qcow2 image


# qemu-img resize [the downloaded qcow2 img file] +number of gigs to assisgn
# +14g

# Once booten into the vm ,do
# growfs / for expanding the filesystem

See! How trivial it gets to get things going! Indeed. And I have clearly mentioned the steps you need to perform beforehand.

And, the checks could have been much robust than just paltry hostname.

What I have not mentioned in the script info is that you could change the password of the root or ordinary user once you get in. That’s pretty trivial and one should do that if they have some amount of practical use of this vm.

You need to get a few packages, which are also clearly stated in the script header and pretty easy to get from the Linux distributions package manager’s repository.

Have fun 🙂

Footnotes: 1 FreeBSD Website 2 QEMU website

http://unixbhaskar.wordpress.com/?p=1959
Extensions
Linux Find Commandline Tool Examples
GNU/LinuxTechnical Commandline Tools Terminal Linux Opensource
Well, find1 is considered Swiss Army Knife of system administration. So, sooner you get yourself familiarize the better you will be. It is blazing fast and precise. Here in this post, I will show you a few more examples, which might come in handy in your day-to-day activity. Search file for NO User, that means […]
Show full content

Well, find1 is considered Swiss Army Knife of system administration. So, sooner you get yourself familiarize the better you will be. It is blazing fast and precise.

Here in this post, I will show you a few more examples, which might come in handy in your day-to-day activity.

Search file for NO User, that means Orphan File
find . -nouser -ls
Search for Duplicate Words
#!/usr/bin/env bash

folder=$1

printf " Printing out all duplicate files by on the basis of sha512sum...wait \n\n"

find $folder -type f -exec sha512sum '{}' ';' | sort | uniq --all-repeated=separate -w 33

Find Executable Files
find . -maxdepth 1 -type f -executable -print
Find INODE of filesystem
#find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls {} | wc -l" \;

find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls -i {}" \;

Find DOT files and open with Vim
#!/bin/bash

dir=$1

find $dir -maxdepth 1 -name ".*" -type f | fzf | xargs -I {} vim {}

Find Debian Package Dependency
#!/bin/bash

base=$1

printf " USAGE: please provide the search directory as an parameter \n "

find $base -name "*deb" -print0 -exec dpkg -f {} Depends \;

Find HARD links
#!/bin/bash

find / -links +2 -type f -exec ls -li {} \;

Remove specific file from specific location
find /boot/efi/ -maxdepth 1 -name "*Gentoo*" -type f -exec rm -f {} \;
Copy file to specific directory
find /boot/ -maxdepth 1 -type f -name "vmlinuz-${kernel}-Gentoo" -exec cp {}  /boot/efi/ \;
find /boot/ -maxdepth 1 -type f -name "initramfs-${kernel}-Gentoo.img" -exec cp {} /boot/efi/ \;
Clean specific files EXCEPT a specific day’s backup, means, excluding that day
find ${backup_dir} -maxdepth 1 -name "home-backup-*" -type f -not \( -path "${backup_dir}/home-backup-$date_and_time.tar.gz" -prune \) -exec rm -f {} \;
Search multiple file extensions
find . -type f -name "*.c" -o -name "*.h
Searching system wide and detect if it the search is performing in git repo or outside of it
search ()
{
    if test ! -d ".git"; then
        sudo find / -name "*$1*" -ls 2> /dev/null;
    else
        if test $(git rev-parse --git-dir 2> /dev/null); then
            git grep -n "$1";
        fi;
    fi
}

Ctags and Etags little script using find
#!/bin/bash -
#===============================================================================
#
#          FILE: cscope_database_create.sh
#
#         USAGE: ./cscope_database_create.sh
#
#   DESCRIPTION: Search and build cscope database for linux kernel
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: Found it here : https://courses.cs.washington.edu/courses/cse451/12sp/tutorials/tutorial_cscope.html
#        AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com
#  ORGANIZATION: Independent
#       CREATED: 03/02/2023 17:32
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

LNX="."

echo "Finding relevant source files..."
find $LNX                                                                \
    -path "$LNX/arch/*" ! -path "$LNX/arch/x86*" -prune -o               \
    -path "$LNX/include/asm-*" ! -path "$LNX/include/asm-generic*"       \
                               ! -path "$LNX/include/asm-x86*" -prune -o \
    -path "$LNX/tmp*" -prune -o                                          \
    -path "$LNX/Documentation*" -prune -o                                \
    -path "$LNX/scripts*" -prune -o                                      \
    -path "$LNX/tools/testing/selftests*" -prune -o                      \
    -name "*.[chxsS]" -print > $LNX/cscope.files


echo "Building cscope database..."
time cscope -q -k -b -c -i cscope.files >/dev/null 2>&1

echo "Building Emacs tags....."
find . -type f -iname "*.[chS]" | xargs etags -a

exit 0

Find by SIZE
find . -size +100M -size -2G
Find out the latest files in specific directory and open with zathura pdf viewer
latest_file=$(find $HOME/bibliography/pdf_docs/ -maxdepth 1 -type f -newermt $(date '+%F') -ls | gawk '{ print $11}' | sort -f -i -r | head -1)
$(command -v zathura) "$latest_file" >/dev/null 2>&1
Search file based on permission
find -perm mode

Enough!

Footnotes:

1 Find Manual Page

http://unixbhaskar.wordpress.com/?p=1956
Extensions
Slackware Linux Custom Kernel Package Automated Way
GNU/LinuxTechnical Linux Opensource Slackware Bash Scripts Automation
To mitigate the inquisitiveness of certain things, it is always better to stab at it. Provided it is not bring something really bad at you or others. In this post, I will show you the way you can build a custom kernel package on Slackware1 with some trivial scripting. I was curious, so I poke […]
Show full content

To mitigate the inquisitiveness of certain things, it is always better to stab at it. Provided it is not bring something really bad at you or others. In this post, I will show you the way you can build a custom kernel package on Slackware1 with some trivial scripting.

I was curious, so I poke little with already well written scripts by other able people, and modified to those script to my taste. On top of that, I wrote a few to wrap around those, just to make go at once, so I can concentrate on other things.

Darn simple and easy to consume, the original scripts, as it takes little time to gloss over those just to understand what they are targeted to perform.

So, without much ado, here is my version :

#!/usr/bin/env bash

# This script build the slackware kernel package from upstream kernel source.


# License (GPL v2.0)

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

basedir=/home/bhaskar/k
kern_version=$(uname -r | tr -d "\-Slackware") # This could be simple "uname -r", but my system ....
source_tarball_download=/home/bhaskar/Adm_scripts/secure_kernel_tarball

# To get the secure_kernel_tarball script, get it from here https://www.kernel.org/category/signatures.html

# Change all "defconfig" to "localmodconfig" in generic-kernel script, which will speed up the build process

if test ! -d $basedir;then

# Download the kernel source tree from mirror
#
sh -c "lftp https://mirrors.slackware.com -e "mirror -v -X *xz -X *sign  /slackware/slackware64-current/source/k""

sh -c "chmod +x $basedir/build-all-kernels.sh"

sh -c "chmod +x $basedir/kernel-generic.SlackBuild"

sh -c "chmod +x $basedit/kernel-headers.SlackBuild"

sh -c "chmod +x $basedit/kernel-source.SlackBuild"

fi

which_kernel() {
 printf "\n\n Which kernel would be your base? Stable or Mainline or Longterm? [S/M/L]: %s"
 read response

 if [[ $response == "S" ]];then
 #Get the stable kernel from kernel.org
 kernel=$(curl -s https://www.kernel.org/ | grep -A1 'stable:' | grep -oP '(?<=strong>).*(?=</strong.*)' | grep 6.13)
 elif [[ $response == "M" ]];then
 #Get the mainline kernel from kernel.org
 kernel=$(curl -s https://www.kernel.org/ | grep -A1 'mainline:' | grep -oP '(?<=strong>).*(?=</strong.*)')
 elif [[ $response == "L" ]];then
 #Get the longterm kernel from kernel.org
 kernel=$(curl -s https://www.kernel.org/ | grep -A1 'longterm:' | grep -oP '(?<=strong>).*(?=</strong.*)')
 fi
 }


pushd $basedir

# Downlod the kernel source tarball and verify

which_kernel

$source_tarball_download $kernel

# Untaring the kernel source

tar -xJvf linux-$kernel.tar.xz

ln -s linux-$kernel linux

# Copying the existing config to the package build directory

cp /boot/config-${kern_version}.x64 /home/bhaskar/k/kernel-configs/config-${kern_version}.x64
cp /boot/config-${kern_version}.x64 /home/bhaskar/k/config-${kern_version}.x64

# Get it rolling to build the package.

./build-all-kernels.sh

if test $? -eq 0;then

popd

fi


If you are kind of person,looking for complexity to judge the merit of it, you will highly disappoint by looking at it. I can’t help much about that, think of it as my shortcoming.

Anyway, the script start with checking the build directory, if that is missing, then get the stuff from upstream via lftp, oh, you could use other protocol too, i.e. wget2, curl3 whatever you like to comfortable with.

Once it established, that basic scripts are there in that downloaded directory, the first thing you have to do is, change the permission of the precisely four scripts, i.e.

bhaskar_11:08:22_Tue Mar 04: :~/k>ls
build-all-kernels.sh  doinst.sh       kernel-generic.SlackBuild  kernel-source.SlackBuild  linux-6.13.5         patches-revert-i686
config-6.13.5.x64     kernel-configs  kernel-headers.SlackBuild  linux                     linux-6.13.5.tar.xz  slack-desc

Look at the lftp4 command, the downloaded stuffs are dumped in the k directory inside your home directory. Although, you could change that as per your will, I haven’t bother to do so.

Also, I have made change into kernel-generic.Slackbuild script change defconfig to localmodconfig to speed up the build process.

Then, it simply copies the running kernel config to the designated directories, so the scripts can pick it up properly.

The thing is that, they upstream had an old kernel source included discarded via the lftp command option and get the others necessary scripts from it.

Next, the kernel I get it via some simple prompting mechanism, which is filter out from the kernel.org website. Also, downloaded the kernel via a utility script5 also posted in the same website.It basically, download the tarball and verify the GPG signature of the on it. Good for sanity.

Then there is a master script which basically call all other script in turn to get it work together to build the package.Most of the work regarding that built into as template way, the extra stuff could be infused by the end user trying that stuff, which is what I did, somewhat. The build process cycle through the designated scripts and producing what is required to be used. It created three things, as the you can see in the directory listing, creates a generic kernel package, a source kernel package and the header file package.

Footnotes: 1 Slackware Linux 2 wget protocol 3 cURL protocol 4 lftp protocol 5 secure_kernel_tarball script

http://unixbhaskar.wordpress.com/?p=1949
Extensions