Save some space by removing redundant firmware after tarball is made, only perform...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 8 Dec 2004 19:47:55 +0000 (19:47 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 8 Dec 2004 19:47:55 +0000 (19:47 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@486 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
livecd/runscript-support/livecdfs-update.sh

index 6fb8cb515fa94221fed5009a8c945c958a6378f7..14481bcb6e8b15460d8ec4a9030576c69b53f4bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.115 2004/12/06 22:25:10 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.116 2004/12/08 19:47:55 wolf31o2 Exp $
+
+  08 Dec 2004; Chris Gianelloni <wolf31o2@gentoo.org>
+  livecd/runscript-support/livecdfs-update.sh:
+  Save some space by removing redundant firmware after tarball is made, only
+  perform sed on /etc/conf.d/gpm if it exists, and change fstab to be more
+  readable.
 
   06 Dec 2004; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/stage1/stage1-preclean2-chroot.sh:
index d5b51d1938a5c61904d3711c41033ec22b20804f..7a7680d9dac6e8f4e3fe2ec30331d0ca757cf091 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/livecdfs-update.sh,v 1.21 2004/11/19 18:19:23 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/livecdfs-update.sh,v 1.22 2004/12/08 19:47:55 wolf31o2 Exp $
 
 /usr/sbin/env-update
 source /etc/profile
@@ -58,13 +58,13 @@ echo "gentoo" > /etc/dnsdomainname
 sed -i -e "s:localhost:livecd.gentoo localhost:" /etc/hosts
 
 # gpm fixes
-sed -i -e 's/#MOUSE=imps2/MOUSE=imps2/' \
+[ -e /etc/conf.d/gpm ] && sed -i -e 's/#MOUSE=imps2/MOUSE=imps2/' \
        -e 's:#MOUSEDEV=/dev/input/mice:MOUSEDEV=/dev/input/mice:' \
        /etc/conf.d/gpm
 
 # fstab tweaks
 #sed -i -e '/\/dev\/[RBS]*/ s/^/#/' /etc/fstab
-echo "tmpfs            /       tmpfs   defaults        0 0" >> /etc/fstab
+echo "tmpfs            /                               tmpfs   defaults        0 0" > /etc/fstab
 echo "tmpfs            /usr/lib/hotplug/firmware       tmpfs   defaults        0 0" >> /etc/fstab
 sed -i -e '/dev-state/ s/^/#/' /etc/devfsd.conf
 
@@ -87,10 +87,10 @@ echo "alias grep='grep --color=auto'" >> /etc/profile
 # make sure we have the latest pci and hotplug ids
 if [ -d /usr/share/hwdata ]
 then
-       [ -f /usr/share/misc/pci.ids ] && rm -f /usr/share/misc/pci.ids
-       [ -f /usr/share/misc/usb.ids ] && rm -f /usr/share/misc/usb.ids
-       ln -s /usr/share/hwdata/pci.ids /usr/share/misc/pci.ids
-       ln -s /usr/share/hwdata/usb.ids /usr/share/misc/usb.ids
+       [ -f /usr/share/hwdata/pci.ids ] && rm -f /usr/share/hwdata/pci.ids
+       [ -f /usr/share/hwdata/usb.ids ] && rm -f /usr/share/hwdata/usb.ids
+       ln -s /usr/share/misc/pci.ids /usr/share/hwdata/pci.ids
+       ln -s /usr/share/misc/usb.ids /usr/share/hwdata/usb.ids
 fi
 
 # tweak the motd for gentoo releases 
@@ -142,5 +142,5 @@ then
 fi
 
 # tar up the firmware so that it does not get clobbered by the livecd mounts
-[ -n "$(ls /usr/lib/hotplug/firmware)" ] && tar cvjpf /usr/lib/hotplug/firmware.tar.bz2 /usr/lib/hotplug/firmware/*
+[ -n "$(ls /usr/lib/hotplug/firmware)" ] && tar cvjpf /usr/lib/hotplug/firmware.tar.bz2 /usr/lib/hotplug/firmware/* && rm -f /usr/lib/hotplug/firmware/*
 ln -sf /lib/firmware /usr/lib/hotplug/firmware