]> git.zerfleddert.de Git - m1-debian/commitdiff
add instructions to repack live
authorThomas Glanzmann <thomas@glanzmann.de>
Sat, 12 Mar 2022 20:20:57 +0000 (21:20 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Sat, 12 Mar 2022 20:20:57 +0000 (21:20 +0100)
files/quickstart.txt

index e57b5150dd86efaeba171318e424b8f916c81a7c..661a9b62a4dd9baf057b0bd75de19a2d0b29b57a 100644 (file)
@@ -107,3 +107,19 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta
         - Install grub
 
         - reboot
         - Install grub
 
         - reboot
+
+Repack live
+===========
+You might want to save the state of your live system to the usb stick. In order
+to do so, run the following commands:
+
+apt update
+apt-get install -y cpio pigz
+rm /etc/rc.local
+# remove '#' before allow-hotplug
+vi /etc/network/interfaces
+mount /dev/sda1 /mnt
+mv /mnt/initrd.gz /mnt/initrd.old
+cd /
+find . -xdev | cpio --quiet -H newc -o | pigz -9 > /mnt/initrd.gz
+umount /mnt
Impressum, Datenschutz