summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_linuximage
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_linuximage')
-rwxr-xr-xhelpers/lh_chroot_linuximage24
1 files changed, 17 insertions, 7 deletions
diff --git a/helpers/lh_chroot_linuximage b/helpers/lh_chroot_linuximage
index 0af6e18..e3d3786 100755
--- a/helpers/lh_chroot_linuximage
+++ b/helpers/lh_chroot_linuximage
@@ -36,17 +36,17 @@ Breakpoint "chroot_linuximage: Init"
# Requiring stage file
Require_stagefile .stage/bootstrap
-# Checking lock file
-Check_lockfile .lock
-
-# Creating lock file
-Create_lockfile .lock
-
case "${1}" in
install)
# Checking stage file
Check_stagefile .stage/chroot_linuximage
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/kernel-img.conf ]
then
# Saving kernel-img.conf
@@ -54,7 +54,11 @@ case "${1}" in
fi
# Configuring kernel-img.conf
- echo "do_initrd = Yes" >> chroot/etc/kernel-img.conf
+cat >> chroot/etc/kernel-img.conf << EOF
+do_bootloader = No
+do_initrd = Yes
+warn_initrd = No
+EOF
if [ "${LIVE_KERNEL_PACKAGES}" != "none" ]
then
@@ -85,6 +89,12 @@ case "${1}" in
;;
remove)
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/kernel-img.conf.old ]
then
# Restoring kernel-img.conf file