Advertisement
neochapay

Untitled

Jan 28th, 2022
1,167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/lib/functions.sh b/lib/functions.sh
  2. index a3832b0..8a86515 100755
  3. --- a/lib/functions.sh
  4. +++ b/lib/functions.sh
  5. @@ -332,7 +332,7 @@ create_rootfs_img() {
  6.      # Install device and editions specific packages
  7.      mount -o bind $PKGDIR/pkg-cache $PKG_CACHE
  8.      case "$EDITION" in
  9. -        cubocore|phosh|plasma-mobile|plasma-mobile-dev|kde-bigscreen|maui-shell)
  10. +        cubocore|phosh|plasma-mobile|plasma-mobile-dev|kde-bigscreen|maui-shell|nemomobile)
  11.              $NSPAWN $ROOTFS_IMG/rootfs_$ARCH pacman -Syyu base systemd systemd-libs manjaro-system manjaro-release $PKG_EDITION $PKG_DEVICE --noconfirm || abort
  12.              ;;
  13.          minimal|server)
  14. @@ -390,12 +390,17 @@ create_rootfs_img() {
  15.              # Lock root user
  16.              $NSPAWN $ROOTFS_IMG/rootfs_$ARCH passwd --lock root
  17.              ;;
  18. -        phosh|lomiri|nemomobile)
  19. +        phosh|lomiri)
  20.              $NSPAWN $ROOTFS_IMG/rootfs_$ARCH groupadd -r autologin
  21.              $NSPAWN $ROOTFS_IMG/rootfs_$ARCH gpasswd -a "$USER" autologin
  22.              # Lock root user
  23.              $NSPAWN $ROOTFS_IMG/rootfs_$ARCH passwd --lock root
  24.              ;;
  25. +        nemomobile)
  26. +            echo "Create user manjaro for nemomobile..."
  27. +            $NSPAWN $ROOTFS_IMG/rootfs_$ARCH groupadd -r autologin
  28. +            $NSPAWN $ROOTFS_IMG/rootfs_$ARCH useradd -m -g users -G wheel,sys,audio,input,video,storage,lp,network,users,power,autologin -p $(openssl passwd -6 123456) -s /bin/bash manjaro
  29. +            ;;
  30.          minimal|server)
  31.              echo "Enabling SSH login for root user for headless setup..."
  32.              sed -i s/"#PermitRootLogin prohibit-password"/"PermitRootLogin yes"/g $ROOTFS_IMG/rootfs_$ARCH/etc/ssh/sshd_config
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement