aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.d/system/devname.info4
-rwxr-xr-xscripts/functions/sinit_functions48
2 files changed, 20 insertions, 32 deletions
diff --git a/config.d/system/devname.info b/config.d/system/devname.info
index a62dfcb..32ae17f 100644
--- a/config.d/system/devname.info
+++ b/config.d/system/devname.info
@@ -6,9 +6,9 @@
# Example 3 SYS /dev/sdb1 full will create a partition /dev/sdb1 which will take all the available space and LABEL=SYS
# The filesystem type is located at the fstab.info file which is automatically created from the guided fstab entry
# and it can also be configured manually from the same submenu.
-BOOT /dev/sda 500M
+BOOT /dev/sda1 500M
SYS /dev/sdb
USERDATA /dev/sdc
-# EOF \ No newline at end of file
+# EOF
diff --git a/scripts/functions/sinit_functions b/scripts/functions/sinit_functions
index eddfa2f..b8876b2 100755
--- a/scripts/functions/sinit_functions
+++ b/scripts/functions/sinit_functions
@@ -860,6 +860,20 @@ _edit_configs() {
esac
}
+# THE CONTROLLER MENU
+controller_f() {
+ clear; amiroot "$UID"; echo "You selected: build the controller image"; echo
+ # source "${CWORKDIR}/scripts/controller"
+ _PARENT=0
+}
+
+_make_cimage() {
+ dracut --force --show-modules --printsize --nostrip --early-microcode \
+ --fscks "fsck.btrfs fsck.ext4 fsck.fat fsck.hfs fsck.hfsplus fsck.jfs fsck.minix fsck.reiser4 fsck.reiserfs fsck.vfat fsck.xfs" \
+ --filesystems "btrfs ext4 fat hfs hfsplus jfs minix reiser4 reiserfs vfat xfs" \
+ "${CDISTDIR}/initramfs-${GSEVER}-4.9.16-gentoo"
+}
+
# FLAGS AND ARGUMENTS
librarium() {
_e_report_back "===================================================================================================================="
@@ -1043,29 +1057,10 @@ librarium() {
exit;;
- --build-controller*|-bc* )
- if [[ "$1" != *'='* ]]; then
- die "Missing argument for controller's path"
- else
- _flag_controller_path="${1#*=}"
-
- if [[ ${_flag_controller_path:0:1} != "/" ]]; then
- _flag_controller_path="/${_flag_controller_path}"
- fi
-
- if [[ "${_flag_controller_path}" == '/' ]]; then
- die "Root is not allowed to be set as moddir path. Aborting..."
- else
- if [[ -d "${_flag_controller_path}" ]]; then
- _flag_controller=0
- export _flag_controller
- export _flag_controller_path
- _e_report_back "Controller flag enabled"
- else
- die "Error: moddir's target is not a directory"
- fi
- fi
- fi
+ --build-controller|-bc )
+ _flag_controller=0
+ export _flag_controller
+ _e_report_back "Controller flag enabled"
;;
--auto* )
if [[ "$1" != *'='* ]]; then
@@ -2448,13 +2443,6 @@ selectdef_f() {
esac
}
-# THE CONTROLLER MENU
-controller_f() {
- clear; amiroot "$UID"; echo "You selected: build the controller image"; echo
- # source "${CWORKDIR}/scripts/controller"
- _PARENT=0
-}
-
# DOCUMENTATIONS MENU
doc_f(){
read -rp "Choose a document you wish to read: " SELCT