Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Kernel Installer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Canek Peláez Valdés
Kernel Installer
Commits
a47706aa
Commit
a47706aa
authored
7 years ago
by
Canek Peláez Valdés
Browse files
Options
Downloads
Patches
Plain Diff
Allow to override the config file.
parent
303d8522
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
kerninst
+26
-4
26 additions, 4 deletions
kerninst
kerninst.conf
+3
-0
3 additions, 0 deletions
kerninst.conf
with
29 additions
and
4 deletions
kerninst
+
26
−
4
View file @
a47706aa
...
@@ -23,8 +23,17 @@
...
@@ -23,8 +23,17 @@
# Pretty messages
# Pretty messages
.
/etc/init.d/functions.sh
.
/etc/init.d/functions.sh
# Configuration
.
/etc/kerninst/kerninst.conf
# Allow overriding of configuration
function
getconf
()
{
V
=
"
${
1
}
"
val
=
$(
/bin/grep
"^
${
V
}
="
"/etc/kerninst/kerninst.conf"
|
cut
-d
"="
-f
2
)
if
[
-z
"
${
!V
}
"
]
;
then
echo
-n
"
${
val
}
"
else
echo
-n
"
${
!V
}
"
fi
}
# Set the terminal title
# Set the terminal title
function
termtitle
()
{
function
termtitle
()
{
...
@@ -44,8 +53,21 @@ function kinfo() {
...
@@ -44,8 +53,21 @@ function kinfo() {
einfo
"
${
1
}
"
einfo
"
${
1
}
"
}
}
# Log file
# Set configuration
LOGFILE
=
/var/log/kerninst.log
LOGFILE
=
$(
getconf
"LOGFILE"
)
KERNEL_CONFIG
=
$(
getconf
"KERNEL_CONFIG"
)
BOOT_MANAGER
=
$(
getconf
"BOOT_MANAGER"
)
GRUB_CONFIG_FILE
=
$(
getconf
"GRUB_CONFIG_FILE"
)
BOOTCTL_TITLE
=
$(
getconf
"BOOTCTL_TITLE"
)
BOOTCTL_SPLASH
=
$(
getconf
"BOOTCTL_SPLASH"
)
INCLUDE_FIRMWARE
=
$(
getconf
"INCLUDE_FIRMWARE"
)
KERNEL_MAKEOPTS
=
$(
getconf
"KERNEL_MAKEOPTS"
)
KERNEL_COMMAND_LINE
=
$(
getconf
"KERNEL_COMMAND_LINE"
)
MODULES_REBUILD
=
$(
getconf
"MODULES_REBUILD"
)
UPDATE_KERNEL_CONFIG
=
$(
getconf
"UPDATE_KERNEL_CONFIG"
)
INCLUDES
=
$(
getconf
"INCLUDES"
)
MOUNT_BOOT
=
$(
getconf
"MOUNT_BOOT"
)
MOUNT_BOOT_EFI
=
$(
getconf
"MOUNT_BOOT_EFI"
)
# Delete old log file
# Delete old log file
/bin/rm
-f
"
${
LOGFILE
}
"
/bin/rm
-f
"
${
LOGFILE
}
"
...
...
This diff is collapsed.
Click to expand it.
kerninst.conf
+
3
−
0
View file @
a47706aa
# Log file
LOGFILE
=
"/var/log/kerninst.log"
# The file with the kernel configuration. This file should be in /etc.
# The file with the kernel configuration. This file should be in /etc.
KERNEL_CONFIG
=
"/etc/kerninst/kernel-config"
KERNEL_CONFIG
=
"/etc/kerninst/kernel-config"
...
...
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