Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Desktop (http://www.linux-archive.org/ubuntu-desktop/)
-   -   Put "killall -USR2 anaconda" in a pre-populated history. (http://www.linux-archive.org/ubuntu-desktop/274006-put-killall-usr2-anaconda-pre-populated-history.html)

Peter Jones 11-03-2009 02:11 PM

Put "killall -USR2 anaconda" in a pre-populated history.
 
Having things in .bash_history saves my fingers from pain later in life,
which is a noble goal. This also puts pidof and killall in the image,
because they're nice things, and we can have nice things.
---
scripts/mk-images | 4 ++++
scripts/upd-instroot | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 214da16..bf6e115 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -842,6 +842,10 @@ PATH=/bin:/usr/bin:/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/sbin:/mnt/sysi
export PATH PS1
EOF

+cat > $MBD_DIR/.bash_history <<EOF
+killall -USR2 anaconda
+EOF
+
rm -f $MBD_FSIMAGE
(cd $MBD_DIR; find . |cpio --quiet -c -o) |gzip -9 > $MBD_FSIMAGE

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index a9b4058..e190653 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -183,13 +183,14 @@ PACKAGES="GConf2 NetworkManager ORBit2 acl anaconda
mesa-dri-drivers mkinitrd module-init-tools nash ncurses neon net-tools
newt newt-python nfs-utils nspr nss nss-softokn ntfs-3g
openldap openssh openssh-server
- pam pango parted pciutils pcre
+ pam pango parted pciutils pcre psmisc
pygtk2-libglade pykickstart pyparted python python-bugzilla python-decorator
python-libs python-nss python-pyblock python-sqlite
python-urlgrabber python-volume_key pyxf86config readline redhat-artwork
reiserfs-utils rpm rpm-libs rpm-python sed selinux-policy-targeted
setup slang smc-meera-fonts specspo sqlite synaptics system-config-date
system-config-keyboard ${brandpkgname}-logos ${brandpkgname}-release taipeifonts tcp_wrappers
+ sysvinit-tools
tzdata udev un-core-dotum-fonts urw-fonts util-linux-ng tigervnc-server
tigervnc-server-module vlgothic-fonts vim-minimal
wget wpa_supplicant xkeyboard-config xfsprogs xorg-x11-xauth
@@ -445,6 +446,7 @@ sbin/parted
sbin/pcmcia-socket-startup
sbin/pdisk
sbin/probe
+sbin/pidof
sbin/reiserfsck
sbin/reiserfstune
sbin/resize_reiserfs
@@ -506,6 +508,7 @@ usr/bin/head
usr/bin/hformat
usr/bin/hmount
usr/bin/humount
+usr/bin/killall
usr/bin/logger
usr/bin/lsattr*
usr/bin/lshal
--
1.6.5.rc2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Chris Lumens 11-03-2009 02:14 PM

Put "killall -USR2 anaconda" in a pre-populated history.
 
> Having things in .bash_history saves my fingers from pain later in life,
> which is a noble goal. This also puts pidof and killall in the image,
> because they're nice things, and we can have nice things.

A+.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

David Cantrell 11-03-2009 09:45 PM

Put "killall -USR2 anaconda" in a pre-populated history.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 3 Nov 2009, Peter Jones wrote:


Having things in .bash_history saves my fingers from pain later in life,
which is a noble goal. This also puts pidof and killall in the image,
because they're nice things, and we can have nice things.


If it's health and safety committee inspired, I'm all for it.


---
scripts/mk-images | 4 ++++
scripts/upd-instroot | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 214da16..bf6e115 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -842,6 +842,10 @@ PATH=/bin:/usr/bin:/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/sbin:/mnt/sysi
export PATH PS1
EOF

+cat > $MBD_DIR/.bash_history <<EOF
+killall -USR2 anaconda
+EOF
+
rm -f $MBD_FSIMAGE
(cd $MBD_DIR; find . |cpio --quiet -c -o) |gzip -9 > $MBD_FSIMAGE

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index a9b4058..e190653 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -183,13 +183,14 @@ PACKAGES="GConf2 NetworkManager ORBit2 acl anaconda
mesa-dri-drivers mkinitrd module-init-tools nash ncurses neon net-tools
newt newt-python nfs-utils nspr nss nss-softokn ntfs-3g
openldap openssh openssh-server
- pam pango parted pciutils pcre
+ pam pango parted pciutils pcre psmisc
pygtk2-libglade pykickstart pyparted python python-bugzilla python-decorator
python-libs python-nss python-pyblock python-sqlite
python-urlgrabber python-volume_key pyxf86config readline redhat-artwork
reiserfs-utils rpm rpm-libs rpm-python sed selinux-policy-targeted
setup slang smc-meera-fonts specspo sqlite synaptics system-config-date
system-config-keyboard ${brandpkgname}-logos ${brandpkgname}-release taipeifonts tcp_wrappers
+ sysvinit-tools
tzdata udev un-core-dotum-fonts urw-fonts util-linux-ng tigervnc-server
tigervnc-server-module vlgothic-fonts vim-minimal
wget wpa_supplicant xkeyboard-config xfsprogs xorg-x11-xauth
@@ -445,6 +446,7 @@ sbin/parted
sbin/pcmcia-socket-startup
sbin/pdisk
sbin/probe
+sbin/pidof
sbin/reiserfsck
sbin/reiserfstune
sbin/resize_reiserfs
@@ -506,6 +508,7 @@ usr/bin/head
usr/bin/hformat
usr/bin/hmount
usr/bin/humount
+usr/bin/killall
usr/bin/logger
usr/bin/lsattr*
usr/bin/lshal



- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrwsnsACgkQ5hsjjIy1Vkk9hACeMCN/ROFbYLiVhl0GCXk472oO
lqQAoMCajoNiGhQwDtn7ZP7RZhlx+LBR
=Bexs
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 12:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.