[__hostname] Comment out support for ancient ArchLinux versions
This commit is contained in:
		
					parent
					
						
							
								a885082534
							
						
					
				
			
			
				commit
				
					
						f18bdd1fad
					
				
			
		
					 1 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
					@ -68,14 +68,17 @@ in
 | 
				
			||||||
        then
 | 
					        then
 | 
				
			||||||
            set_hostname_systemd "$name_should"
 | 
					            set_hostname_systemd "$name_should"
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
 | 
					            echo 'Ancient ArchLinux variants without hostnamectl are not supported.' >&2
 | 
				
			||||||
 | 
					            exit 1
 | 
				
			||||||
            # Only for ancient ArchLinux, write to /etc/rc.conf on pre-systemd
 | 
					            # Only for ancient ArchLinux, write to /etc/rc.conf on pre-systemd
 | 
				
			||||||
            # versions.  There are some versions which use /etc/hostname but not
 | 
					            # versions.  There are some versions which use /etc/hostname but not
 | 
				
			||||||
			# systemd. It is unclear which ones these are.
 | 
					            # systemd. It is unclear which ones these are.
 | 
				
			||||||
            __key_value '/etc/rc.conf:HOSTNAME' \
 | 
					
 | 
				
			||||||
                --file /etc/rc.conf \
 | 
					            # __key_value '/etc/rc.conf:HOSTNAME' \
 | 
				
			||||||
                --delimiter '=' --exact_delimiter \
 | 
					            #     --file /etc/rc.conf \
 | 
				
			||||||
                --key 'HOSTNAME' \
 | 
					            #     --delimiter '=' --exact_delimiter \
 | 
				
			||||||
                --value "\"$name_should\""
 | 
					            #     --key 'HOSTNAME' \
 | 
				
			||||||
 | 
					            #     --value "\"$name_should\""
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    centos|fedora|redhat|scientific)
 | 
					    centos|fedora|redhat|scientific)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue