mirror of
				https://github.com/vyos/vyos-build.git
				synced 2025-10-01 20:28:40 +02:00 
			
		
		
		
	When building the kernel with 'make deb-pkg' insted of 'make-kpkg' - which is the new official way - an initramfs will be deployed. This break's VyOS! Delete all possible initramfs image(s) before building the final VyOS initramfs image.
		
			
				
	
	
		
			13 lines
		
	
	
		
			333 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			333 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
echo I: Create initramfs if it does not exist.
 | 
						|
 | 
						|
# Kernel complains about non available nls_ascii module when booting from USB pendrive
 | 
						|
echo "nls_ascii" >> /etc/initramfs-tools/modules
 | 
						|
 | 
						|
if [ -e /boot/initrd.img-* ]; then
 | 
						|
	rm -f /boot/initrd.img-*
 | 
						|
fi
 | 
						|
 | 
						|
update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`
 |