Added more tests
This commit is contained in:
@@ -151,8 +151,8 @@ configure_boot() {
|
||||
|
||||
# Copy kernel to ESP
|
||||
if [ -f "${MOUNT_POINT}/boot/vmlinuz" ]; then
|
||||
cp "${MOUNT_POINT}/boot/vmlinuz" "${MOUNT_POINT}/boot/efi/EFI/Linux/vmlinuz.efi"
|
||||
mkdir -p "${MOUNT_POINT}/boot/efi/EFI/Linux"
|
||||
cp "${MOUNT_POINT}/boot/vmlinuz" "${MOUNT_POINT}/boot/efi/EFI/Linux/vmlinuz.efi"
|
||||
ok "Kernel copied to ESP"
|
||||
else
|
||||
warn "No kernel found — you'll need to install one before booting"
|
||||
|
||||
@@ -132,10 +132,13 @@ l3:3:wait:/etc/rc.d/rc.multi
|
||||
ca::ctrlaltdel:/sbin/shutdown -r now
|
||||
EOF
|
||||
|
||||
# Installer scripts
|
||||
# Installer scripts and configs
|
||||
mkdir -p "${ROOTFS}/install/configs"
|
||||
cp -a "${PROJECT_ROOT}/src/install/"* "${ROOTFS}/install/" 2>/dev/null || true
|
||||
cp "${PROJECT_ROOT}/configs/zprofile" "${ROOTFS}/install/configs/zprofile" 2>/dev/null || true
|
||||
mkdir -p "${ROOTFS}/install/configs"
|
||||
cp "${PROJECT_ROOT}/configs/inittab" "${ROOTFS}/install/configs/inittab" 2>/dev/null || true
|
||||
cp "${PROJECT_ROOT}/configs/rc.conf" "${ROOTFS}/install/configs/rc.conf" 2>/dev/null || true
|
||||
cp -a "${PROJECT_ROOT}/configs/rc.d" "${ROOTFS}/install/configs/rc.d" 2>/dev/null || true
|
||||
|
||||
# Live shell profile with installer prompt
|
||||
cat > "${ROOTFS}/root/.bash_profile" << 'PROFILE'
|
||||
|
||||
Reference in New Issue
Block a user