From 55b1119e611f34ca414b1a660d3804addb2a0388 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 24 Dec 2015 17:47:47 +0100 Subject: Delete ALSA state file, the Live OS may be booted on different computers. --- liveinit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liveinit b/liveinit index 0c32d33..088d4dd 100755 --- a/liveinit +++ b/liveinit @@ -419,6 +419,9 @@ EOPW sed -i -e "s/^\(127.0.0.1\t*\)@DARKSTAR@.*/\1${LIVE_HOSTNAME}.example.net ${LIVE_HOSTNAME}/" /mnt/overlay/etc/hosts fi + # Delete ALSA state file, the Live OS may be booted on different computers: + rm -f /mnt/overlay/var/lib/alsa/asound.state + # Copy contents of rootcopy directory (may be empty) to overlay: cp -af /mnt/media/${LIVEMAIN}/rootcopy/* /mnt/overlay/ 2>/dev/null -- cgit v1.2.3