Changeset 1693 in MondoRescue for branches/stable/tools


Ignore:
Timestamp:
Oct 21, 2007, 3:06:22 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • Remove useless copy from mindi to mondo at end of USB handling
  • Fix PB macro vs tools/*2build issue
  • make_usb_fs change of interface (doesn't need a parameter)
  • Fix USB support in mondo to avoid multiple copies of files
  • Use first partiion in mondo for USB device
  • Fixes for USB CLI for both mondo/mindi
  • Try to add USB support for mondoarchive with new functions
  • du => deb for similarity with other distro type under pbconf
  • migrate gento build files under pb
  • remove now obsolete rpm spec file and gentoo build files from distributions
  • Remove DOCDIR usage in mindi + various build fixes

(merge -r1680:1692 $SVN_M/branches/2.2.5)

Location:
branches/stable/tools
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/qemu-vm.txt

    r1663 r1693  
    22qemu-img create -f qcow2 image.qemu 3G
    33qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
     4
     5# use lilo on recent x86_86 distros as grub doesn't work.
     6# on suse make yast2 use the right repositories (Sw/SWrepositories/ remove DVD)
     7# # verify root alogin on sshd conf
     8grep Root /etc/ssh/sshd_config
     9
     10# On Ubuntu install openssh-server
     11apt-get install openssh-server
     12
     13# At install on 64 distro use lilo
     14# on Ubuntu change tty, kill grub install
     15# chroot /target remount cdrom
     16# install lilo instead
    417
    518# Recent SUSE acpi=off
     
    720# RPM based : urpmi, yum install, yast2
    821# Mandriva
    9 urpmi neon newt-devel slang-devel glibc-static-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo mkisofs cdrecord pb
    10 
    11 #Fedora
    12 yum install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs pb
    13 
    1422
    1523# gentoo
     
    2331apt-get install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev libncurses5-dev pb
    2432
    25 # Apply AppConfig path
    26 patch -p0 < pb-doc/App*
    27 
    2833#Changing CD during install:
    2934Ctrl-Alt-2
     
    3641
    3742#Clé SSH:
     43mkdir .ssh
     44chmod 700 .ssh
    3845scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
    3946chmod 600 /root/.ssh/authorized_keys
    40 
    41 #Créer compte pb
    42 useradd pb
    43 
    44 # No passwd for pb
    45 perl -pi -e 's/^pb:\!\!:/pb:*:/' /etc/shadow
    46 # Adapt sudoers
    47 echo "pb   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
    48 # poweroff only
    49 
    50 su - pb
    51 mkdir ~/.ssh
    52 chmod 700 ~/.ssh
    53 scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
    54 # Passwd asked above
    55 chmod 600 ~/.ssh/authorized_keys
    5647
    5748#rebuild paquets necessaires mondo:
     
    6455chmod 644 build/RPMS/i386/*
    6556scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
    66 
    67 # Exchange host keys with www.mondorescue.org
    68 ssh www.mondorescue.org ls
    69 
    7057
    7158root:
  • branches/stable/tools/setupqemu

    r1681 r1693  
    33(
    44if [ _"$1" == _"" ]; then
    5     echo "Syntax: setupqemu VM"
     5    echo "Syntax: setupqemu VM|all"
    66    exit -1
    77fi
    88cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript
    9 for m in $*; do
    10     pb -r `pwd` -p mondorescue -m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm
     9if [ _"$1" == "all" ]; then
     10    pb -r `pwd` -p mondorescue -a root -s /tmp/pbscript script2vm
    1111    ssh -p 2222 root@localhost halt
    1212    sleep 120
    13     ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9
    14 done
     13    ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill
     14else
     15    for m in $*; do
     16        pb -r `pwd` -p mondorescue -m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm
     17        #ssh -p 2222 root@localhost halt
     18        #sleep 120
     19        #ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9
     20    done
     21fi
    1522) 2>&1 | tee /tmp/setupqemu.log
Note: See TracChangeset for help on using the changeset viewer.