Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
F
flash-kernel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
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
Librem5
flash-kernel
Commits
ab17c4b2
Commit
ab17c4b2
authored
Sep 18, 2016
by
Vagrant Cascadian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for root device being set using PARTUUID.
parent
9a862154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
debian/changelog
debian/changelog
+6
-0
initramfs-tools/hooks/flash_kernel_set_root
initramfs-tools/hooks/flash_kernel_set_root
+7
-1
No files found.
debian/changelog
View file @
ab17c4b2
flash-kernel (3.69) UNRELEASED; urgency=medium
* Add support for root device being set using PARTUUID.
-- Vagrant Cascadian <vagrant@debian.org> Sun, 18 Sep 2016 21:12:51 -0700
flash-kernel (3.68) unstable; urgency=medium
[ Karsten Merker ]
...
...
initramfs-tools/hooks/flash_kernel_set_root
View file @
ab17c4b2
...
...
@@ -67,7 +67,7 @@ if [ -n "$rootdev" ]; then
fi
fi
# Translate LABEL
and
UUID entries into a proper device name.
# Translate LABEL
, UUID, and PART
UUID entries into a proper device name.
if
echo
"
$rootdev
"
|
grep
-q
"="
;
then
a
=
$(
echo
"
$rootdev
"
|
cut
-d
"="
-f
1
)
b
=
$(
echo
"
$rootdev
"
|
cut
-d
"="
-f
2- |
sed
-e
's/^"\(.*\)"$/\1/'
)
...
...
@@ -86,6 +86,12 @@ if echo "$rootdev" | grep -q "="; then
echo
"UUID
$b
doesn't exist in /dev/disk/by-uuid"
>
&2
fi
;;
PARTUUID
)
rootdev
=
/dev/disk/by-partuuid/
$b
if
[
!
-e
$rootdev
]
;
then
echo
"UUID
$b
doesn't exist in /dev/disk/by-uuid"
>
&2
fi
;;
*
)
echo
"/etc/fstab parse error; cannot recognize root
$rootdev
"
>
&2
rootdev
=
/dev/sda2
...
...
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