summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-04 14:45:51 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-04 14:45:51 +0100
commit26fd811bf5dbfcab4c30886e647e9fd366e59e9c (patch)
tree17f362e01542faf5c88b11f4bdca327126e3d9ed
parent547910f7013c14c1a3b6d0ef448e7879eb9efc09 (diff)
downloadliveslak-26fd811bf5dbfcab4c30886e647e9fd366e59e9c.tar.gz
liveslak-26fd811bf5dbfcab4c30886e647e9fd366e59e9c.tar.xz
Explicitly mount /tmp on a tmpfs, this is better for the USB stick's health.
Not an issue for a Live Edition running exclusively in RAM, but things are different when you create a USB stick with persistence. The /tmp would then be created on the USB stick and the continuous writes will degrade the flash medium.
-rwxr-xr-xmake_slackware_live.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index cdf3373..f75504a 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# $Id: make_slackware_live.sh,v 1.11 2015/12/01 21:03:21 root Exp root $
+# $Id: make_slackware_live.sh,v 1.12 2015/12/04 13:19:46 root Exp $
# Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
@@ -406,7 +406,7 @@ do
case $Option in
h ) cat <<-"EOH"
-----------------------------------------------------------------
- $Id: make_slackware_live.sh,v 1.11 2015/12/01 21:03:21 root Exp root $
+ $Id: make_slackware_live.sh,v 1.12 2015/12/04 13:19:46 root Exp $
-----------------------------------------------------------------
EOH
echo "Usage:"
@@ -734,8 +734,9 @@ rm -f ${LIVE_ROOTDIR}/etc/ssh/*key*
cat <<EOT > ${LIVE_ROOTDIR}/etc/fstab
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
-devpts /dev/pts devpts gid=5,mode=620 0 0
+tmpfs /tmp tmpfs defaults,nodev,nosuid,mode=1777 0 0
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,mode=1777 0 0
+devpts /dev/pts devpts gid=5,mode=620 0 0
none / tmpfs defaults 1 1
EOT
@@ -945,8 +946,10 @@ Session=/usr/share/xsessions/plasma.desktop
EOT
# Thanks to Fedora Live: https://git.fedorahosted.org/cgit/spin-kickstarts.git
- # Set akonadi backend:
mkdir -p ${LIVE_ROOTDIR}/etc/skel/.config/akonadi
+ mkdir -p ${LIVE_ROOTDIR}/etc/skel/.kde/share/config
+
+ # Set akonadi backend:
cat <<AKONADI_EOF >${LIVE_ROOTDIR}/etc/skel/.config/akonadi/akonadiserverrc
[%General]
Driver=QSQLITE3