Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
alpine
alpine-conf
Commits
13c1ebcc
Commit
13c1ebcc
authored
Jan 23, 2019
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: let grub-mkconfig create grub.conf
parent
8429a0f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
setup-disk.in
setup-disk.in
+8
-10
No files found.
setup-disk.in
View file @
13c1ebcc
...
...
@@ -306,16 +306,14 @@ setup_grub() {
esac
fi
# setup GRUB config
# all_video is needed to remove the video error on boot
cat
>
"
$mnt
"
/boot/grub/grub.cfg
<<-
EOF
set timeout=2
insmod all_video
menuentry "Alpine Linux" {
linux /boot/vmlinuz-
$KERNEL_FLAVOR
modules=
$modules
root=
$root
$kernel_opts
initrd /boot/initramfs-
$KERNEL_FLAVOR
}
# setup GRUB config. trigger will generate final grub.cfg
install
-d
"
$mnt
"
/etc/default/
cat
>
"
$mnt
"
/etc/default/grub
<<-
EOF
GRUB_DISTRIBUTOR="Alpine"
GRUB_TIMEOUT=2
GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_RECOVERY=true
GRUB_CMDLINE_LINUX_DEFAULT="modules=
$modules
$kernel_opts
"
EOF
}
...
...
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