summaryrefslogtreecommitdiffstats
path: root/update_kernel
blob: 8547de0c6330553f817c4d95bab8553d63b3651c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/bash

ALL_KERNELS="all.kernels"

function f() { 
    echo -n "."
    v=`perl -Iperl-install -Mmodules -e "print qq(\\$_.o\n) foreach modules::module_of_type__4update_kernel(\"$1\")"` 
}

function create_marfile() {
    marfile=$1
    shift
    for i in $*
    do
	j=`basename $i .o`
        needed=`cat modules.dep | perl -ne "print "'$1'" if /^$j: (.*)/"`
        for k in $needed
	do
	    [ -z "`echo $* | grep $k`" ] \
              && [ -z "`echo $PCMCIA_COREMODULES | grep $k`" ] \
              && echo "WARNING! in $marfile, $k is missing (required by $i)"
        done
    done
    $GIBASEDIR/mdk-stage1/mar/mar -c $marfile $(ls $*)
}

function create_modules() {
    kernel_path=$1
    kern=$2
    echo "Updating modules in '`pwd`' for kernel '$kern'"
    cp -f `find $kernel_path/lib/modules/ -name "*.o"` .
    /sbin/depmod -F $kernel_path/boot/System.map* -e *.o | perl -pe 's/\\\n//' \
	| perl -ne 's/\.o//g; s/[ \t]+/ /g; print if /: /' > modules.dep
    perl -pi -e 's/((plip|ppa|imm): parport)/$1 parport_pc/' modules.dep
    ls *.o | packdrake -b9s "modules.cz" 400000
    mv modules.cz ../modules.cz-$kern
    create_marfile network_modules.mar  $NETWORK_MODULES $GENERIC_MODULES
    create_marfile cdrom_modules.mar    $CDROM_MODULES $GENERIC_MODULES
    create_marfile hd_modules.mar       $HD_MODULES $GENERIC_MODULES
    create_marfile pcmcia_modules.mar   $PCMCIA_MODULES $PCMCIA_COREMODULES $GENERIC_MODULES
    create_marfile usbnet_modules.mar   $USBNET_MODULES $GENERIC_MODULES
    create_marfile other_modules.mar    $BIG_MODULES $GENERIC_MODULES
    create_marfile all_modules.mar      $ALL_MODULES $GENERIC_MODULES
    rm -f $ALL_MODULES $PCMCIA_COREMODULES $NOT_USEFULL_IN_STAGE1 # leave in the directory non-install1 used modules
}

[ -e $ALL_KERNELS/.main ] && main=$(cat $ALL_KERNELS/.main)
[ -n "$main" -a -e $ALL_KERNELS/$main ] || {
    pushd . >/dev/null
    cd $ALL_KERNELS
    main=$(echo 2.* | sed 's/.* //')
    echo "Choosing $main"
    echo $main > .main
    popd >/dev/null
}

ARCH=`uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/'`

echo -n "Finding modules categories"
f "scsi" ; SCSI_DRIVERS=$v
f "disk" ; DISK_DRIVERS=$v
f "net" ; NETWORK_DRIVERS=$v
f "scsi cdrom" ; CD_DRIVERS=$v
f "pcmcia net_raw cdrom_raw scsi_raw disk_raw" ; PCMCIA_DRIVERS=$v
f "usb" ; USB_DRIVERS=$v
f "usbnet net_raw" ; USBNET_DRIVERS=$v
f "big net_raw cdrom_raw scsi_raw disk_raw" ; BIG_DRIVERS=$v
f "pcmcia net usb usbnet cdrom scsi disk keepbig" ; ALL_DRIVERS=$v
[ $ARCH == "i386" ] && DOSMODULES="vfat.o fat.o"
echo "done."

NETWORK_MODULES="  $NETWORK_DRIVERS"
USBNET_MODULES="   $USB_DRIVERS $USBNET_DRIVERS usbkbd.o keybdev.o input.o"
CDROM_MODULES="    $CD_DRIVERS"
HD_MODULES="       $DOSMODULES $SCSI_DRIVERS $DISK_DRIVERS loop.o isofs.o reiserfs.o"
[ "$ARCH" == "ppc" ] && HD_MODULES="$HDMODULES hfs.o"
PCMCIA_MODULES="   $DOSMODULES $PCMCIA_DRIVERS"
BIG_MODULES="      $BIG_DRIVERS"
ALL_MODULES="      $DOSMODULES $ALL_DRIVERS loop.o isofs.o reiserfs.o"
[ "$ARCH" == "ppc" ] && ALL_MODULES="$ALL_MODULES hfs.o"
NOT_USEFULL_IN_STAGE1="nls_*.o parport_probe.o raid*.o serial.o smbfs.o usb-*.o"

GENERIC_MODULES="isa-pnp.o floppy.o"

PCMCIA_COREMODULES="pcmcia_core.o tcic.o ds.o i82365.o"


if [ "$ARCH" == "i386" ]; then
    for i in $ALL_KERNELS/*/boot/vmlinuz*; do
	#disable any existing resolution!!!
	/usr/sbin/rdev -v $i 65535 #788 #785 
    done
else
    if [ "$ARCH" == "ppc" ]; then
        cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux .
    else
        cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux.gz .
    fi
fi


GIBASEDIR=`pwd`

rm -rf all.modules ; mkdir all.modules
for i in $ALL_KERNELS/*; do
	kern=`basename $i`
	[ -e $i/cardmgr ] && (
	    cd $i/cardmgr
	    touch main.c
	    nm cardmgr.o | grep -q cardmgr_main && echo "int main(int argc, char **argv) { cardmgr_main(argc, argv); }" > main.c
	    gcc -o cardmgr-$kern *.o main.c
	)
	(
	    mkdir all.modules/$kern
	    cd all.modules/$kern
	    if [ "$kern" = "$main" ]; then
		create_modules ../../$i $kern
	    else
		echo "$kern ($main)"
		create_modules ../../$i $kern 2>/dev/null
	    fi
	)
done


install_kernel() {
 v=2.4.3-BOOT4
 scp kenobi:~chmou/work/kernel/archive/kernel-$v.tar.bz2 /tmp
 cd ~/gi/all.kernels ; rm -rf $v ; mkdir $v ; cd $v ; tar xfj /tmp/kernel-$v.tar.bz2 
 cd ~/gi ; ./update_kernel ; rm -f images/network.rdz ; ./make_boot_img images/network.rdz network 
 scp all.kernels/$v/boot/vmlinu* kenobi:/tftpboot/vmlinuz
 scp images/network.rdz kenobi:/tftpboot
 cp -f ~/gi/all.modules/modules.cz-$v /export/Mandrake/mdkinst/lib/modules.cz
}
# scp kenobi:~mbadaire/kernel/boot/archive/kernel-$v.tar.bz2 /tmp
andriva.com>
+
+ * urpmi.recover: Add the _rollback_transaction_on_failure macro
+ (with the default value, disabled) to the urpmi.recover.macros
+ file
+
+2006-02-11 14:32 berthy
+
+ * po/fr.po: Update french translation
+
+2006-02-10 19:11 Wanderlei Antonio Cavassin <cavassin at mandriva.com>
+
+ * po/pt_BR.po: More pt_BR translations.
+
+2006-02-10 19:09 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * MANIFEST, pod/urpmi.recover.8.pod: Add skeleton manpage for
+ urpmi.recover
+
+2006-02-10 18:39 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * po/Makefile: urpmi.recover contains translatable strings
+
+2006-02-10 18:37 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi.spec: Add new package urpmi-recover. Require recent URPM.
+
+2006-02-10 18:29 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * MANIFEST: Update MANIFEST
+
+2006-02-10 18:15 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * Makefile.PL: Add urpmi.recover in Makefile.PL. Bump requirement
+ for recent URPM.
+
+2006-02-10 18:14 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi.recover, urpm/args.pm: New tool, urpmi.recover
+
+2006-02-09 17:10 Thierry Vignaud <tvignaud at mandriva.com>
+
+ * po/ja.po: update (Yukiko Bando)
+
+2006-02-09 16:09 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * gurpmi2: gurpmi should install global options when installing
+
+2006-02-09 16:04 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpme, pod/urpme.8.pod, urpm/args.pm: urpme needs to support
+ --repackage too
+
+2006-02-09 14:30 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * Makefile.PL, urpmi.spec: Require latest URPM to support repackage
+ option
+
+2006-02-09 14:24 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm.pm, urpmi, pod/urpmi.8.pod, pod/urpmi.cfg.5.pod,
+ urpm/args.pm, urpm/cfg.pm: Implement urpmi --repackage. Add a
+ "repackage" global option in urpmi.cfg. Document them.
+
+2006-02-09 13:24 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm.pm: Log mounts and umounts
+
+2006-02-09 12:47 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm.pm: Log transaction creation
+
+2006-02-09 12:26 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpme, urpmi: Log calls to urpmi and urpme
+
+2006-02-09 11:16 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi.spec: Remove logrotate file
+
+2006-02-08 18:13 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmf, urpmi, urpmq: Use stdout for informational messages, not
+ stderr
+
+2006-02-08 18:13 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm/msg.pm: Simplification of usage of duped stdout
+
+2006-02-08 16:16 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm/prompt.pm: Simplify prompt function
+
+2006-02-08 16:11 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi, urpm/args.pm, urpm/msg.pm: Get rid of message() function
+
+2006-02-08 15:40 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi: Dup standard streams only when necessart
+
+2006-02-08 15:16 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm/args.pm: Add a --logfile option for debug
+
+2006-02-08 15:13 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi, pod/urpmi.8.pod, urpm/msg.pm: Remove default logging to
+ /var/log/urpmi.log. Add an interface to syslog in urpm::msg.
+ Make --env verify if env dir exists.
+
+2006-02-07 22:55 mmodem
+
+ * po/pt.po: [no log message]
+
+2006-02-07 18:59 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi, urpm/msg.pm: A bit of clarification in logging code
+
+2006-02-07 11:22 Willy Sudiarto Raharjo <willysr at gmail.com>
+
+ * po/id.po: Updated
+
+2006-02-06 16:52 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm.pm: Always remove from the local cache all packages that
+ were part of the transaction, even if they weren't successfully
+ installed. (Bug #17913)
+
+2006-02-06 16:45 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm/args.pm: I keep typing --noinstall instead of --no-install.
+ Add this as an alias.
+
+2006-02-06 15:54 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpm.pm: Clean more aggressively in /var/cache/rpms
+
+2006-02-06 13:53 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * po/fr.po: French translation nits
+
+2006-02-06 13:34 berthy
+
+ * po/fr.po: Update french translation
+
+2006-02-06 10:53 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpme: Fixes in --help output
+
+2006-02-06 10:47 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpme: Make message to ask whether N packages should be removed
+ more explicit (suggested by blino)
+
+2006-02-05 10:47 Funda Wang <fundawang at linux.net.cn>
+
+ * po/it.po: Updated Italian translations from Andrea Celli
+ <andrea.celli@libero.it>.
+
+2006-02-03 14:26 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * gurpmi2: Stupid typo, --no-verify-rpm wasn't working correctly
+ with gurpmi
+
+2006-02-03 10:01 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * pod/: urpme.8.pod, urpmi.8.pod: Add urpme in urpmi manpage / see
+ also. Remove misleading BUGS section in urpmi manpage. Minor
+ fixes and additions in urpme manpage.
+
+2006-02-02 18:32 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
+
+ * urpmi.bash-completion: Add --noscripts to urpme completion
+
2006-02-02 16:03 Rafael Garcia-Suarez <rgarciasuarez at mandriva.com>
* urpm.pm, urpmi.spec: 4.8.9-1mdk