mirror of
				https://github.com/kevinveenbirkenbach/linux-image-manager.git
				synced 2025-11-04 09:28:01 +00:00 
			
		
		
		
	Inserted function to populate keys
This commit is contained in:
		@@ -372,6 +372,16 @@ if [ "$change_hostname" == "y" ]
 | 
				
			|||||||
fi
 | 
					fi
 | 
				
			||||||
info "Used hostname is: $target_hostname"
 | 
					info "Used hostname is: $target_hostname"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					case "$os" in
 | 
				
			||||||
 | 
					  "arch"|"manjaro")
 | 
				
			||||||
 | 
					    info "Populating keys..." &&
 | 
				
			||||||
 | 
					    (
 | 
				
			||||||
 | 
					    echo "yes | pacman-key --init"
 | 
				
			||||||
 | 
					    echo "yes | pacman-key --populate archlinuxarm"
 | 
				
			||||||
 | 
					    ) | chroot "$root_mount_path" /bin/bash || error
 | 
				
			||||||
 | 
					  ;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
question "Should the system be updated?(y/N)" && read -r update_system
 | 
					question "Should the system be updated?(y/N)" && read -r update_system
 | 
				
			||||||
if [ "$update_system" == "y" ]
 | 
					if [ "$update_system" == "y" ]
 | 
				
			||||||
  then
 | 
					  then
 | 
				
			||||||
@@ -379,8 +389,6 @@ if [ "$update_system" == "y" ]
 | 
				
			|||||||
    case "$os" in
 | 
					    case "$os" in
 | 
				
			||||||
      "arch"|"manjaro")
 | 
					      "arch"|"manjaro")
 | 
				
			||||||
        (
 | 
					        (
 | 
				
			||||||
        echo "yes | pacman-key --init"
 | 
					 | 
				
			||||||
        echo "yes | pacman-key --populate archlinuxarm"
 | 
					 | 
				
			||||||
        echo "pacman --noconfirm -Syyu"
 | 
					        echo "pacman --noconfirm -Syyu"
 | 
				
			||||||
        ) | chroot "$root_mount_path" /bin/bash || error
 | 
					        ) | chroot "$root_mount_path" /bin/bash || error
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user