]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/usb/updatepackages
More organization of USB boot key
[bacula/rescue] / rescue / linux / usb / updatepackages
index 84899686867768a07ae5ceb06cc59202f83609c2..4f51aed4e476e92a54d27ac127ae810320b5cf64 100644 (file)
@@ -1,14 +1,18 @@
 #!/bin/sh
 #
-# Update squashfs
+# Update squashfs -- assumes you start with a Hardy 8.04.1 desktop,
+#   but it should work even if you have already updated it.
 #
 
 chroot sqfs /bin/sh
 mount -t proc none /proc/
 mount -t sysfs non /sys/
 export HOME=/root
+
+# remove packages
 apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep language-pack | egrep -v '\-en'`
 apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep openoffice\.org-`
+apt-get remove --purge amarok dictionaries-common
 
 cat >/etc/apt/sources.list <<EOF
 deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
@@ -26,7 +30,19 @@ apt-get upgrade
 
 # Add new packages
 apt-get install openssh-server subversion kdetoys kicker-applets kgpg gftp \
- firefox sg3-utils
+  firefox sg3-utils
+apt-get install flashplugin-nonfree aircrack-ng g++ nvidia-glx-new gfxboot \
+  syslinux mtools
+
+# Add heldback packages
+apt-get install bind9-host dnsutils libbind9-30 libisccc30 libisccfg30 \
+  linux-generic linux-headers-generic linux-image-generic \
+  linux-restricted-modules-generic ssl-cert
+
+# Remove old kernel
+apt-get remove linux-headers-2.6.24-19 linux-headers-2.6.24-19-generic \
+  linux-image-2.6.24-19-generic linux-restricted-modules-2.6.24-19-generic \
+  linux-restricted-modules-2.6.24-22-generic linux-ubuntu-modules-2.6.24-19-generic
 
 cd /
 dpkg-query -W --showformat='${Package} ${Version}\n' >filesystem.manifest