Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ros-playground
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
ros-playground
Commits
5e1e6166
There was an error fetching the commit references. Please try again later.
Commit
5e1e6166
authored
4 years ago
by
Bensong Liu
Browse files
Options
Downloads
Patches
Plain Diff
add_efi
parent
7f0e9ec5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
efi/efi-to-hdd-image.fish
+29
-0
29 additions, 0 deletions
efi/efi-to-hdd-image.fish
with
29 additions
and
0 deletions
efi/efi-to-hdd-image.fish
0 → 100755
+
29
−
0
View file @
5e1e6166
#!/usr/bin/fish
set efi_file $argv[1]
set output_file ./output.img
set mountp ./tmp.mount.point
dd if=/dev/zero of=$output_file bs=560M count=1 status=progress
and sgdisk -n 1:0:0 $output_file
and sudo losetup /dev/loop5 $output_file --partscan
and sudo mkfs.vfat -F32 /dev/loop5p1
and rm -rf $mountp ; and mkdir $mountp
and sudo mount /dev/loop5p1 $mountp
and sudo mkdir -p $mountp/efi/boot
and sudo cp $efi_file $mountp/efi/boot/BOOTX64.efi
and sudo umount $mountp
and sudo sync
and sudo losetup -d /dev/loop5
and echo "Success"
or echo "Failed."
This diff is collapsed.
Click to expand it.
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