Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
partman-efi
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Installer
partman-efi
Commits
abaf2a9e
Commit
abaf2a9e
authored
4 years ago
by
Pete Batard
Browse files
Options
Downloads
Patches
Plain Diff
Remount /cdrom read-write if it also happens to be used as /boot/efi
parent
f3df3864
No related branches found
No related tags found
1 merge request
!1
Remount /cdrom read-write if it also happens to be used as /boot/efi
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fstab.d/efi
+16
-0
16 additions, 0 deletions
fstab.d/efi
with
16 additions
and
0 deletions
fstab.d/efi
100755 → 100644
+
16
−
0
View file @
abaf2a9e
...
...
@@ -12,6 +12,15 @@ case $ARCH in
;;
esac
# Resolve the device that is mounted as /cdrom
cdrom_device
=
while
IFS
=
" "
read
-r
f1 f2 f3 f4 f5 f6
do
if
[
$f2
==
"/cdrom"
]
;
then
cdrom_device
=
$f1
fi
done
< /proc/mounts
seen_efi
=
for
dev
in
$DEVICES
/
*
;
do
[
-d
$dev
]
||
continue
...
...
@@ -23,6 +32,13 @@ for dev in $DEVICES/*; do
[
-f
"
$id
/method"
]
||
continue
method
=
$(
cat
$id
/method
)
[
"
$method
"
=
efi
]
||
continue
# If the device we are mounting as /boot/efi also happens to
# be the /cdrom device, we must remount it read-write, else
# the mounting of /boot/efi fails.
if
[
"
$path
"
==
"
$cdrom_device
"
]
;
then
log
"Remounting /cdrom read-write for use as ESP"
mount
-o
remount,rw
"
$path
"
/cdrom
fi
echo
"
$path
"
/boot/efi vfat
umask
=
0077 0 1
seen_efi
=
1
done
...
...
This diff is collapsed.
Click to expand it.
Pete Batard
@pbatard
mentioned in merge request
!2 (merged)
·
4 years ago
mentioned in merge request
!2 (merged)
mentioned in merge request !2
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment