Various fixes for the previous commit
This commit is contained in:
parent
cabb7fee92
commit
27bff76662
2
input/grub/modscript
Executable file
2
input/grub/modscript
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
export OPUS_PACKAGES="$OPUS_PACKAGES grub2"
|
2
input/mandb-disable/data/chroot
Executable file
2
input/mandb-disable/data/chroot
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
dpkg-divert --divert /usr/bin/mandb /usr/bin/mandb.bak
|
@ -1 +0,0 @@
|
||||
path-exclude=/usr/bin/mandb
|
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
export OPUS_PACKAGES="$OPUS_PACKAGES keyboard-configuration network-manager python3"
|
||||
export OPUS_PACKAGES="$OPUS_PACKAGES sudo keyboard-configuration network-manager python3"
|
||||
export OPUS_PACKAGES_DL="$OPUS_PACKAGES console-setup locales tzdata"
|
35
make-os
35
make-os
@ -8,46 +8,45 @@ if
|
||||
cd "$(dirname "$(realpath -s "$BASH_SOURCE")")"
|
||||
source shell
|
||||
source "env-$1"
|
||||
make-base "$OPUS_OUTPUT/$1" # Base image
|
||||
#export OPUS_IMAGEDIR="/media/zram/$1"
|
||||
export OPUS_IMAGEDIR="$OPUS_OUTPUT/$1"
|
||||
make-base "$OPUS_IMAGEDIR" # Base image
|
||||
export OPUS_PACKAGES=""
|
||||
export OPUS_PACKAGES_DL=""
|
||||
export OPUS_PACKAGES_REMOVE=""
|
||||
|
||||
source apply-mod "$OPUS_HOME/mkinitramfs-disable" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/mandb-disable" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/mandb-disable" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Base
|
||||
source apply-mod "$OPUS_HOME/input/sources" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/oobe" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/sources" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/oobe" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Base - Hardware
|
||||
source apply-mod "$OPUS_HOME/input/kernel" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/firmware-free" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/kernel" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/firmware-free" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/grub" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Graphical
|
||||
source apply-mod "$OPUS_HOME/input/packages-graphical" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/packages-graphical" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Overrides
|
||||
source apply-mod "$OPUS_HOME/input/hostname" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/user-config" "$OPUS_OUTPUT/$1"
|
||||
|
||||
# Extra - hardware
|
||||
source apply-mod "$OPUS_HOME/enable-mkinitramfs" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/hostname" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/user-config" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Raw image
|
||||
source apply-mod "$OPUS_HOME/input/raw-disk" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/image-raw" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Packages
|
||||
source apply-mod "$OPUS_HOME/input/packages-apply" "$OPUS_OUTPUT/$1"
|
||||
source apply-mod "$OPUS_HOME/input/packages-apply" "$OPUS_IMAGEDIR"
|
||||
|
||||
make-image "$OPUS_OUTPUT/$1" "$OPUS_OUTPUT/${OPUS_NAME}-${OPUS_DIST}-${OPUS_ARCH}_$(date "+%Y.%m.%d-%H.%M.%S").img" # Disk image
|
||||
make-image "$OPUS_IMAGEDIR" "$OPUS_OUTPUT/${OPUS_NAME}-${OPUS_DIST}-${OPUS_ARCH}_$(date "+%Y.%m.%d-%H.%M.%S").img" # Disk image
|
||||
then
|
||||
set +e
|
||||
else
|
||||
set +e
|
||||
echo
|
||||
echo Script execution ended due to error. Cleaning up...
|
||||
fchroot-end "$OPUS_OUTPUT/$1"
|
||||
rm -r "$OPUS_OUTPUT/$1"
|
||||
fchroot-end "$OPUS_IMAGEDIR"
|
||||
rm -r "$OPUS_IMAGEDIR"
|
||||
echo Script execution ended due to error.
|
||||
fi
|
@ -8,21 +8,46 @@ if
|
||||
cd "$(dirname "$(realpath -s "$BASH_SOURCE")")"
|
||||
source shell
|
||||
source "env-$1"
|
||||
source "env-proprietary"
|
||||
make-base "$OPUS_OUTPUT/$1" # Base image
|
||||
apply-stage "$OPUS_HOME/input/stage01" "$OPUS_OUTPUT/$1" # Packages (non-graphical)
|
||||
apply-stage "$OPUS_HOME/input/stage49" "$OPUS_OUTPUT/$1" # Packages (proprietary firmware)
|
||||
apply-stage "$OPUS_HOME/input/stage50" "$OPUS_OUTPUT/$1" # Packages (graphical)
|
||||
apply-stage "$OPUS_HOME/input/stage98" "$OPUS_OUTPUT/$1" # Default configs, etc.
|
||||
apply-stage "$OPUS_HOME/input/stage99" "$OPUS_OUTPUT/$1" # Disk image preparation
|
||||
make-image "$OPUS_OUTPUT/$1" "$OPUS_OUTPUT/${OPUS_NAME}-${OPUS_DIST}-${OPUS_ARCH}_$(date "+%Y.%m.%d-%H.%M.%S").img" # Disk image
|
||||
#export OPUS_IMAGEDIR="/media/zram/$1"
|
||||
export OPUS_IMAGEDIR="$OPUS_OUTPUT/$1"
|
||||
make-base "$OPUS_IMAGEDIR" # Base image
|
||||
export OPUS_PACKAGES=""
|
||||
export OPUS_PACKAGES_DL=""
|
||||
export OPUS_PACKAGES_REMOVE=""
|
||||
|
||||
source apply-mod "$OPUS_HOME/mandb-disable" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Base
|
||||
source apply-mod "$OPUS_HOME/input/sources" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/oobe" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Base - Hardware
|
||||
source apply-mod "$OPUS_HOME/input/kernel" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/firmware-free" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/firmware-proprietary" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/grub" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Graphical
|
||||
source apply-mod "$OPUS_HOME/input/packages-graphical" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Overrides
|
||||
source apply-mod "$OPUS_HOME/input/hostname" "$OPUS_IMAGEDIR"
|
||||
source apply-mod "$OPUS_HOME/input/user-config" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Raw image
|
||||
source apply-mod "$OPUS_HOME/input/image-raw" "$OPUS_IMAGEDIR"
|
||||
|
||||
# Packages
|
||||
source apply-mod "$OPUS_HOME/input/packages-apply" "$OPUS_IMAGEDIR"
|
||||
|
||||
make-image "$OPUS_IMAGEDIR" "$OPUS_OUTPUT/${OPUS_NAME}-${OPUS_DIST}-${OPUS_ARCH}_$(date "+%Y.%m.%d-%H.%M.%S").img" # Disk image
|
||||
then
|
||||
set +e
|
||||
else
|
||||
set +e
|
||||
echo
|
||||
echo Script execution ended due to error. Cleaning up...
|
||||
fchroot-end "$OPUS_OUTPUT/$1"
|
||||
rm -r "$OPUS_OUTPUT/$1"
|
||||
fchroot-end "$OPUS_IMAGEDIR"
|
||||
rm -r "$OPUS_IMAGEDIR"
|
||||
echo Script execution ended due to error.
|
||||
fi
|
Loading…
Reference in New Issue
Block a user