Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
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
Xiaowu Zhang
metadata-collect-agent
Commits
67adf281
Commit
67adf281
authored
Sep 08, 2020
by
Leo Le Bouter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debian.package: dracut --force, add EFI boot entry once
Also, only btrfs needs mountpoint if filesystem is mounted.
parent
381d699a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
debian.package/Makefile
debian.package/Makefile
+1
-1
debian.package/uefi-boot-metadata-collect-agent/DEBIAN/postinst
....package/uefi-boot-metadata-collect-agent/DEBIAN/postinst
+8
-6
No files found.
debian.package/Makefile
View file @
67adf281
...
...
@@ -14,7 +14,7 @@ include dracut-conf-template.mk
uefi-boot-metadata-collect-agent/boot/efi/uefi-boot-metadata-collect-agent.efi
:
db.crt db.key db.cer uefi-boot-metadata-collect-agent/boot/efi/secboot.cer
mkdir
-p
/tmp/dracut-empty
echo
"
$
${dracut_conf}
"
>
dracut.conf
sudo
dracut
-c
dracut.conf
--confdir
/tmp/dracut-empty
--uefi-output
$@
sudo
dracut
-
-force
-
c
dracut.conf
--confdir
/tmp/dracut-empty
--uefi-output
$@
sudo chmod
755
$@
rm
-rfv
/tmp/dracut-empty
...
...
debian.package/uefi-boot-metadata-collect-agent/DEBIAN/postinst
View file @
67adf281
#!/bin/sh
#!/bin/
ba
sh
EFI_DEV
=
$(
mount |
grep
-Po
'^.+(?= on /boot/efi )'
)
ROOT_DEV
=
$(
mount |
grep
-Po
'^.+(?= on / )'
)
efibootmgr
--create
--disk
"
$EFI_DEV
"
--label
'UEFI metadata-collect-agent'
--loader
/uefi-boot-metadata-collect-agent.efi
if
!
efibootmgr
--disk
"
$EFI_DEV
"
--verbose
|
grep
"uefi-boot-metadata-collect-agent.efi"
;
then
efibootmgr
--create
--disk
"
$EFI_DEV
"
--label
'UEFI metadata-collect-agent'
--loader
/uefi-boot-metadata-collect-agent.efi
fi
e2label
/
"ROOT"
||
true
e2label
"
$ROOT_DEV
"
"ROOT"
||
true
btrfs filesystem label /
"ROOT"
||
true
reiserfstune
-l
"ROOT"
/
||
true
xfs_admin
-L
"ROOT"
/
||
true
cryptsetup config
--label
=
"ROOT"
/
||
true
\ No newline at end of file
reiserfstune
-l
"ROOT"
"
$ROOT_DEV
"
||
true
xfs_admin
-L
"ROOT"
"
$ROOT_DEV
"
||
true
cryptsetup config
--label
=
"ROOT"
"
$ROOT_DEV
"
||
true
\ No newline at end of file
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