Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ccgx
dracut-crypt-ssh
module-setup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File module-setup.patch of Package dracut-crypt-ssh
diff --git a/modules/60crypt-ssh/module-setup.sh b/modules/60crypt-ssh/module-setup.sh index c3b6584..4b5b101 100644 --- a/modules/60crypt-ssh/module-setup.sh +++ b/modules/60crypt-ssh/module-setup.sh @@ -4,7 +4,13 @@ check() { #check for dropbear require_binaries dropbear || return 1 - + + # if cryptsetup is not installed, then we cannot support encrypted devices. + require_binaries cryptsetup || return 1 + + # require busybox stop systemd from asking crypt pass + require_binaries busybox-static || return 1 + return 0 } @@ -102,13 +108,29 @@ install() { #cleanup rm -rf $tmpDir - + #install the required binaries dracut_install pkill setterm /lib64/libnss_files.so.2 inst $(which dropbear) /sbin/dropbear + inst_multiple cryptsetup rmdir readlink umount #install the required helpers inst "$moddir"/helper/console_auth /bin/console_auth inst "$moddir"/helper/console_peek.sh /bin/console_peek inst "$moddir"/helper/unlock /bin/unlock inst "$moddir"/helper/unlock-reap-success.sh /sbin/unlock-reap-success + + # install busybox + local _i _progs _path _busybox + _busybox=$(type -P busybox-static) + inst $_busybox /usr/bin/busybox + for _i in $($_busybox | sed -ne '1,/Currently/!{s/,//g; s/busybox//g; p}') + do + _progs="$_progs $_i" + done + + for _i in $_progs; do + _path=$(find_binary "$_i") + [ -z "$_path" ] && continue + ln_r /usr/bin/busybox $_path + done }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor