diff options
author | Christos.K <freedomrfox@gmail.com> | 2017-07-18 20:21:16 +0300 |
---|---|---|
committer | Christos.K <freedomrfox@gmail.com> | 2017-07-18 20:21:16 +0300 |
commit | 44eff10118ddeb6be9e6bb4fd655be6611c0ecdc (patch) | |
tree | eba72ca263bfd62af0cb42ced52c62de8fd6ede6 /scripts | |
parent | Minor change (diff) | |
download | GSE-44eff10118ddeb6be9e6bb4fd655be6611c0ecdc.tar.gz GSE-44eff10118ddeb6be9e6bb4fd655be6611c0ecdc.tar.bz2 GSE-44eff10118ddeb6be9e6bb4fd655be6611c0ecdc.zip |
Test devname.info entries and moved controller script to a function inside sinit_functions
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/functions/sinit_functions | 48 |
1 files changed, 18 insertions, 30 deletions
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 |