# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.82 2004/09/09 05:09:11 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.83 2004/09/13 14:27:07 zhen Exp $
+
+ 13 Sep 2004; John Davis <zhen@gentoo.org> catalyst,
+ livecd/runscript-support/livecdfs-update.sh:
+ bugfixes for #60887 and #63338
09 Sep 2004; John Davis <zhen@gentoo.org> catalyst:
bugfixes for #63382 and #63338
#!/usr/bin/python
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.46 2004/09/09 05:28:20 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.47 2004/09/13 14:27:07 zhen Exp $
# Maintained in full by John Davis <zhen@gentoo.org>
myconfig=""
myspecfile=""
mycmdline=[]
-
+ myopts=[]
+
+ # check preconditions
if len(opts) == 0:
- print "!!! catalyst: please specify one of either -f or -C"
+ print "!!! catalyst: please specify one of either -f or -C\n"
+ usage()
sys.exit(2)
+ # check to see if -f and -C are used together
+ for i in opts:
+ myopts.append(i[0])
+
+ if ('-f' in myopts or '--file' in myopts) and ('-C' in myopts or '--cli' in myopts):
+ print "!!! catalyst: please specify one of either -f or -C\n"
+ usage()
+ sys.exit(2)
+
for o, a in opts:
if o in ("-h", "--help"):
usage()
- sys.exit(2)
+ sys.exit(1)
if o in ("-v", "--version"):
print "Catalyst version "+__version__
- sys.exit(2)
+ sys.exit(1)
if o in ("-d", "--debug"):
conf_values["DEBUG"]="1"
+
+ # the debug option cannot be used alone
+ if not ('-f' in myopts or '--file' in myopts) or ('-C' in myopts or '--cli' in myopts):
+ print "!!! catalyst: please specify one of either -f or -C\n"
+ usage()
+ sys.exit(2)
if o in ("-c", "--config"):
myconfig=a
+
+ # the config file option cannot be used alone
+ if not ('-f' in myopts or '--file' in myopts) or ('-C' in myopts or '--cli' in myopts):
+ print "!!! catalyst: please specify one of either -f or -C\n"
+ usage()
+ sys.exit(2)
if o in ("-C", "--cli"):
x=sys.argv.index(o)+1
if o in ("-V", "--verbose"):
conf_values["VERBOSE"]="1"
-
+
+ # the verbosity option cannot be used alone
+ if not ('-f' in myopts or '--file' in myopts) or ('-C' in myopts or '--cli' in myopts):
+ print "!!! catalyst: please specify one of either -f or -C\n"
+ usage()
+ sys.exit(2)
+
# import configuration file and import our main module using those settings
parse_config(myconfig)
sys.path.append(conf_values["sharedir"]+"/modules")
#!/bin/bash
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.11 2004/08/31 01:40:24 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/livecdfs-update.sh,v 1.12 2004/09/13 14:27:07 zhen Exp $
/usr/sbin/env-update
source /etc/profile
then
#allow root logins to the livecd by default
sed -i "s/^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config
- #mv /etc/ssh/sshd_config1 /etc/ssh/sshd_config
fi
# fix /etc/issue for mingetty and friends
exit 1
fi
fi
+
+# tweak the livecd fstab so that users know not to edit it
+# http://bugs.gentoo.org/show_bug.cgi?id=60887
+mv /etc/fstab /etc/fstab.old
+echo "###############################################" >> /etc/fstab
+echo "## ATTENTION: THIS IS THE FSTAB ON THE LIVECD" >> /etc/fstab
+echo "## PLEASE EDIT THE FSTAB IN /mnt/gentoo/etc" >> /etc/fstab
+echo "###############################################" >> /etc/fstab
+cat /etc/fstab.old >> /etc/fstab
+rm /etc/fstab.old