Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cipinstall-initramfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
CIP-Admins
cipinstall-initramfs
Commits
ad932a62
Commit
ad932a62
authored
5 years ago
by
David Sauerwein
Browse files
Options
Downloads
Patches
Plain Diff
Place custom grub.cfg in /boot/cip/grub
parent
e6fe0333
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/boot_cip_grub_grub.cfg
+32
-0
32 additions, 0 deletions
files/boot_cip_grub_grub.cfg
format-disk-and-debootstrap.sh
+9
-3
9 additions, 3 deletions
format-disk-and-debootstrap.sh
with
41 additions
and
3 deletions
files/boot_cip_grub_grub.cfg
0 → 100644
+
32
−
0
View file @
ad932a62
password_pbkdf2
root grub.pbkdf2.sha512.10000.B5C2AFAAD8835D1FBC84C09234AE9C2F161A62E5142160C17A0522E569C659F0A0B4A021BB280E36657D732FBD65B1999759394946F28FC5EBE8598AE07A00C5.C5CF2EE2B00EC399C713A8AC64690BCF6FD373A486DBC54220A53B8ADE32932C488BBEC2AD7C00A845358205E63BF3EE21D60007CA280DF43C21424163FFF7AB
set
superusers="root"
insmod
all_video
insmod
part_gpt
insmod
ext2
# Make
everything pink to make the installer boot menu easily recognizable
set
color_normal="light-magenta/black"
set
color_highlight="black/light-magenta"
set
menu_color_normal="black/light-magenta"
set
menu_color_highlight="light-magenta/black"
set
timeout_style=menu
set
timeout=5
menuentry
'CIP Linux' --unrestricted {
echo
'Loading kernel ...'
#
blacklist noveau to avoid debconf emails about conflicts when installing proprietary nvidia driver
linux
/vmlinuz root=__PARTITION__ net.ifnames=0 biosdevname=0 modprobe.blacklist=nouveau
echo
'Loading initial ramdisk ...'
initrd
/initrd.img
}
menuentry
'iPXE' --hotkey='i' {
echo
'Chainloading iPXE ...'
chainloader
/boot/ipxe.efi
}
menuentry
'System setup' --unrestricted --hotkey='s' {
fwsetup
}
This diff is collapsed.
Click to expand it.
format-disk-and-debootstrap.sh
+
9
−
3
View file @
ad932a62
...
...
@@ -173,9 +173,15 @@ printf "%s\n" "${HOSTNAME}" > ${TARGET}/etc/hostname
##########################################
## install grub
install
-D
-m
0644 /files/etc_default_grub
"
${
TARGET
}
/etc/default/grub"
chroot
${
TARGET
}
grub-install
${
DISK
}
chroot
${
TARGET
}
update-grub
chroot
${
TARGET
}
debconf-set-selections
<<
EOF
grub-efi-amd64 grub2/update_nvram boolean false
EOF
mkdir
-p
"
${
TARGET
}
/boot/cip/grub"
sed
-e
"s,__PARTITION__,
${
PART_ROOT
}
,g"
/files/boot_cip_grub_grub.cfg
>
"
${
TARGET
}
/boot/cip/grub/grub.cfg"
chmod
600
"
${
TARGET
}
/boot/cip/grub/grub.cfg"
chroot
${
TARGET
}
grub-install
--bootloader-id
=
CIP-GRUB
--target
=
x86_64-efi
--boot-directory
=
/boot/cip
--efi-directory
=
/boot/efi
...
...
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