Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahjolinna:AtropOS
dracut
0001-fix-dracut-functions.sh-get_maj_min-only-w...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-fix-dracut-functions.sh-get_maj_min-only-works-on-de.patch of Package dracut
From f54feaf90c7699a2ff2f810d992a831e950ab530 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Tue, 19 Dec 2023 14:23:51 +0100 Subject: [PATCH] fix(dracut-functions.sh): get_maj_min only works on devices --- dracut-functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dracut-functions.sh b/dracut-functions.sh index ef950432..81ac5c50 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -243,6 +243,8 @@ get_maj_min() { local _majmin local _out + [ -b "$1" ] || [ -c "$1" ] || return 1 + if [[ $get_maj_min_cache_file ]]; then _out="$(grep -m1 -oE "^$1 \S+$" "$get_maj_min_cache_file" | awk '{print $NF}')" fi -- 2.42.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor