Mailinglist Archive: opensuse-factory (175 mails)

< Previous Next >
[opensuse-factory] chrooted factory question
  • From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
  • Date: Tue, 22 Jul 2008 00:14:54 +0200 (CEST)
  • Message-id: <alpine.LSU.1.00.0807212355570.12808@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi,

I often update factory while running my "stable" system by chrooting to it:

mount /otros/test_d/
mount /otros/test_d/boot/

mount --bind /proc /otros/test_d/proc
mount --bind /sys /otros/test_d/sys
mount --bind /dev /otros/test_d/dev

cp -f /etc/resolv.conf /otros/test_d/etc/resolv.conf

chroot /otros/test_d/

Where "/otros/test_d/" is the partition where factory is. This works, I do a "zypper dup" and factory is updated. Fine :-)

But there is a glitch: the prompt does not change:

nimrodel:/ #


I'd like to have a different prompt on that chrooted xterm, so that I don't confuse it with my "stable's" xterms. Is it possible? The command "hostname" returns "nimrodel", not the real name of factory (minas-morgul).

I tried:

nimrodel:/ # export HOSTNAME=minas-morgul hostname
nimrodel:/ #

which does not work. Anyway, I don't really need the hostname to change, the prompt would be enough.


Do you know of a trick to do that? This is not strictly a "factory" question, but intend to use the trick for factory O:-)

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIhQpxtTMYHG2NR9URApAwAJ4zxYaZlyg1RdgXBSd0PU1Z55DUYACeKSPK
9WmMMExyLGAvVEl12ntKy8E=
=Wux/
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups