]> git.zerfleddert.de Git - m1-debian/blobdiff - files/quickstart.txt
22:32 < tpw_rules> sgdisk -n 0:0 will also do that
[m1-debian] / 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