forked from Dark-Horse-Linux/pyrois
major improvements to iso boot
This commit is contained in:
@@ -7,7 +7,6 @@ set -a
|
||||
|
||||
APPNAME="livecd"
|
||||
|
||||
|
||||
# the file to log to
|
||||
LOGFILE="${APPNAME}.log"
|
||||
|
||||
@@ -33,11 +32,14 @@ logprint "Creating grub boot directory..."
|
||||
mkdir -p ${T_SYSROOT}/boot/grub
|
||||
assert_zero $?
|
||||
|
||||
|
||||
logprint "Installing livecd grub config"
|
||||
cp -vf ${CONFIGS_DIR}/boot_grub_grub.cfg ${T_SYSROOT}/boot/grub/grub.cfg
|
||||
assert_zero $?
|
||||
|
||||
logprint "Staging OverlayFS Init Script"
|
||||
cp ${CONFIGS_DIR}/init-overlay ${T_SYSROOT}/boot/init-overlay
|
||||
assert_zero $?
|
||||
|
||||
pushd ${dir_artifacts}
|
||||
assert_zero $?
|
||||
|
||||
@@ -45,7 +47,7 @@ logprint "Emptying source stage..."
|
||||
rm -Rf ${TEMP_STAGE_DIR}
|
||||
assert_zero $?
|
||||
|
||||
rm -Rf ${T_SYSROOT}/rex_embedded
|
||||
rm -Rf ${T_SYSROOT}/${rex_dir}
|
||||
assert_zero $?
|
||||
|
||||
logprint "Generating initramfs..."
|
||||
@@ -60,7 +62,7 @@ ulimit -n 3000000
|
||||
assert_zero $?
|
||||
|
||||
logprint "Generating bootable ISO"
|
||||
grub2-mkrescue -o DHLP.iso -V "DHLP" ${T_SYSROOT}
|
||||
grub2-mkrescue -A livecd -o DHLP.iso -V "livecd" ${T_SYSROOT}
|
||||
assert_zero $?
|
||||
|
||||
logprint "Thanks for using Dark Horse Linux. Your experimental build is at '${dir_artifacts}/DHLP.iso'."
|
||||
|
||||
@@ -139,9 +139,7 @@ mode_build() {
|
||||
logprint "Configuring kernel..."
|
||||
cp -vf ${CONFIGS_DIR}/kernel_config ./.config
|
||||
assert_zero $?
|
||||
|
||||
make menuconfig
|
||||
|
||||
|
||||
logprint "Compiling kernel"
|
||||
make
|
||||
assert_zero $?
|
||||
|
||||
@@ -5,6 +5,16 @@
|
||||
"name": "welcome master",
|
||||
"dependencies": [ null ],
|
||||
"comment": "greet the user"
|
||||
},
|
||||
{
|
||||
"name": "which",
|
||||
"dependencies": [ null ],
|
||||
"comment": "greet the user"
|
||||
},
|
||||
{
|
||||
"name": "squashfs-tools",
|
||||
"dependencies": [ null ],
|
||||
"comment": "greet the user"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"user": "root",
|
||||
"group": "root",
|
||||
"supply_environment": true,
|
||||
"environment": "environments/stage2.env.bash"
|
||||
"environment": "environments/livecd.env.bash"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -17,6 +17,42 @@
|
||||
"group": "root",
|
||||
"supply_environment": true,
|
||||
"environment": "environments/stage4.env.bash"
|
||||
},
|
||||
{
|
||||
"name": "which",
|
||||
"target": "components/stage5/which.bash --all",
|
||||
"is_shell_command": true,
|
||||
"shell_definition": "bash",
|
||||
"force_pty": true,
|
||||
"set_working_directory": false,
|
||||
"working_directory": "",
|
||||
"rectify": false,
|
||||
"rectifier": "",
|
||||
"active": true,
|
||||
"required": true,
|
||||
"set_user_context": true,
|
||||
"user": "root",
|
||||
"group": "root",
|
||||
"supply_environment": true,
|
||||
"environment": "environments/stage4.env.bash"
|
||||
},
|
||||
{
|
||||
"name": "squashfs-tools",
|
||||
"target": "components/stage5/squashfs-tools.bash --all",
|
||||
"is_shell_command": true,
|
||||
"shell_definition": "bash",
|
||||
"force_pty": true,
|
||||
"set_working_directory": false,
|
||||
"working_directory": "",
|
||||
"rectify": false,
|
||||
"rectifier": "",
|
||||
"active": true,
|
||||
"required": true,
|
||||
"set_user_context": true,
|
||||
"user": "root",
|
||||
"group": "root",
|
||||
"supply_environment": true,
|
||||
"environment": "environments/stage4.env.bash"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user