Skip to content
Snippets Groups Projects
Select Git revision
  • b6d1ad16231cda5256ffc569577602900c22c754
  • master default protected
  • dev
  • dev-eric
  • dev-jm
  • server
  • serveur
  • 0.4.0
  • v0.3.0
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.8
  • v0.1.7
  • v0.1.6
  • v0.1.5
  • v0.1.4
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
27 results

pacman.conf

Blame
  • customizeChroot 2.20 KiB
    #!@BINDIR@/bash
    # Copyright (c) 2015-2018 Eric Vidal <eric@obarun.org>
    # All rights reserved.
    # 
    # This file is part of Obarun. It is subject to the license terms in
    # the LICENSE file found in the top-level directory of this
    # distribution.
    # This file may not be copied, modified, propagated, or distributed
    # except according to the terms contained in the LICENSE file.
    
    sourcing(){
    	
    	local list
    	
    	for list in /tmp/obarun-install-tmp/install.conf /usr/lib/obarun/util.sh; do
    		if [[ -f "${list}" ]]; then
    			source "${list}"
    		else
    			out_error "Missing file : ${list}"
    			exit	
    		fi
    	done
    	
    	unset list
    }
    sourcing
    
    custo_once() {
    	local _tmp cmd
    	cmd="${1}"
    	_tmp="/tmp/obarun-install-tmp"
    	
    	if [[ ! -d $_tmp ]]; then
    		mkdir -p -m0755 $_tmp || die "Impossible to create $_tmp"
    	fi
        if [[ ! -e $_tmp/customize.${cmd} ]]; then
            "${cmd}" || die "Cannot execute $_"
            touch $_tmp/customize.${cmd}
        else
    		return
    	fi
        unset _tmp
    }
    
    ############################## only modifie this script after this line ############################
    
    create_log_user(){
    	out_action "add ${NEWUSER} at log group"
    	gpasswd -a "$NEWUSER" log
    }
    custo_once create_log_user 
    
    config_66(){
    	
    	out_action "Create tree boot"
    	66-tree -v3 -n boot
    
    	out_action "Enable boot service at tree boot"
    	66-enable -v3 -t boot boot
    
    	out_action "Create tree root, enables and make it current"
    	66-tree -v3 -cn root
    	66-tree -v3 -E root
    
    	out_action "Enable tty1, tty2, dbus, connmand, wpa_supplicant and ntpd on tree root"
    	66-enable -v3 tty@tty1 tty@tty2 dbus openntpd connmand wpa_supplicant
    		
    	out_action "Create tree boot-user for ${NEWUSER} and enable it"
    	66-tree -v3 -n boot-user
    	66-tree -v3 -E boot-user
    
    	out_action "Configure module boot-user@${NEWUSER} and enable it at boot-user tree"
    	66-mods.sh boot-user@${NEWUSER}
    	66-enable -t boot-user All-${NEWUSER}
    	
    	out_action "Create tree graphics for ${NEWUSER}, enables and makes it current"
    	su "${NEWUSER}" -c "66-tree -v3 -cn graphics"
    	su "${NEWUSER}" -c "66-tree -v3 -E graphics"
    	
    	out_action "Enable xdg-user-dirs, dbus-session@${NEWUSER} on tree graphics"
    	su "${NEWUSER}" -c "66-enable -v3 xdg-user-dirs dbus-session@${NEWUSER}"
    }
    custo_once config_66
    
    out_valid "Customization terminate"