Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
initramfs-mender
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
initramfs-mender
Commits
cfb4b5f1
Commit
cfb4b5f1
authored
Apr 15, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence sfdisk errors on boot
parent
65c48b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
init
init
+1
-1
No files found.
init
View file @
cfb4b5f1
...
...
@@ -33,7 +33,7 @@ freespaceafter() {
local
start
label
=
"
$(
sfdisk
-d
$1
2> /dev/null |
sed
-n
's/^label: *//p'
)
"
if
[
$label
=
"gpt"
]
;
then
sfdisk
--relocate
gpt-bak-std
$1
>
/dev/null
sfdisk
--relocate
gpt-bak-std
$1
>
/dev/null
2> /dev/null
fi
escaped
=
"
$(
echo
""
$2
""
|
sed
's|/|\\/|g'
)
"
start
=
"
$(
sfdisk
-d
$1
2> /dev/null |
sed
-n
"/
$escaped
/p"
|
sed
-r
's/.*start=\s*([0-9]+),.*/\1/g'
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment