summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-24 17:47:47 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-24 17:47:47 +0100
commit55b1119e611f34ca414b1a660d3804addb2a0388 (patch)
treec871df77968feac3015125f4b93ea6739e4bc205 /liveinit
parente3d2520cca6ce30f9184334aed1f2127f6006771 (diff)
downloadliveslak-55b1119e611f34ca414b1a660d3804addb2a0388.tar.gz
liveslak-55b1119e611f34ca414b1a660d3804addb2a0388.tar.xz
Delete ALSA state file, the Live OS may be booted on different computers.
Diffstat (limited to 'liveinit')
-rwxr-xr-xliveinit3
1 files changed, 3 insertions, 0 deletions
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