Execute getent in chroot, not on ISO
This commit is contained in:
		
							parent
							
								
									edda8ff56f
								
							
						
					
					
						commit
						5c6d1322e0
					
				| @ -16,7 +16,7 @@ else | |||||||
|     arch-chroot /mnt passwd $name |     arch-chroot /mnt passwd $name | ||||||
|      |      | ||||||
|     # If group "sudo" exists (=> sudo.flavour was installed), ask if the user should be added |     # If group "sudo" exists (=> sudo.flavour was installed), ask if the user should be added | ||||||
|     if [ $(getent group sudo) ]; then |     if [ $(arch-chroot /mnt getent group sudo) ]; then | ||||||
|         echo -n "~> Do you want to add $name to sudoers? (Y/n) " |         echo -n "~> Do you want to add $name to sudoers? (Y/n) " | ||||||
|         read answer |         read answer | ||||||
|         if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then |         if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user