mirror of
				https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
				synced 2025-11-04 01:54:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			705 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			705 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -ex
 | 
						|
 | 
						|
root=$1
 | 
						|
install_dir=$root/var/log/installer
 | 
						|
[ -d $install_dir ] || mkdir -p $install_dir
 | 
						|
 | 
						|
cp $HOME/.cache/calamares/session.log $install_dir/debug
 | 
						|
 | 
						|
cp /cdrom/.disk/info $install_dir/media-info
 | 
						|
cp /var/log/casper.log $install_dir/casper.log
 | 
						|
cp /var/log/syslog $install_dir/syslog
 | 
						|
 | 
						|
gzip --stdout $root/var/lib/dpkg/status > $install_dir/initial-status.gz
 | 
						|
 | 
						|
# OEM id isn't a thing, when in OEM mode ubiquity would also archive that.
 | 
						|
# https://github.com/calamares/calamares/issues/943
 | 
						|
 | 
						|
chmod -v 600 $install_dir/*
 | 
						|
# Make these world readable, they can absolutely not contain anything relevant
 | 
						|
# to security.
 | 
						|
chmod -v 644 $install_dir/initial-status.gz
 | 
						|
chmod -v 644 $install_dir/media-info
 |