Changeset 499


Ignore:
Timestamp:
06/26/09 20:30:09 (3 years ago)
Author:
tschmitt
Message:
  • Paket: kexec-tools aus build dependencies entfernt.
  • Linbofs:
    • mount/umount jetzt von Ubuntu 9.04, nicht mehr von Busybox.
    • ext4-Unterstützung implementiert.
    • Rsync auf Version 3.0.6 aktualisiert.
    • linbo_cmd: o lokales menu.lst Handling verbessert: Eigene menu.lst-Dateien werden von LINBO

nicht mehr verändert, Menue-Position des Windows-Systems wird nun
ermittelt und beim Reboot als Default gesetzt (betr. nur Windows-Systeme, die
den Reboot-Workaround benötigen, zuvor wurde immer der 2. Eintrag gestartet).

o Verbessertes Patching der fstab bei Linuxclients:

Dateisystem-Typ wird der Rootpartition wird ermittelt und ggf. gepatcht, wenn er
in fstab nicht korrekt eingetragen ist; fstab wird nur gepatcht, falls Rootpartition
oder Dateisystem-Typ abweichen, nicht mehr praeventiv.

Location:
main/linuxmuster-linbo/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-linbo/trunk/conf/initramfs.conf

    r495 r499  
    3535file /lib/libnss_compat.so.2 /lib/libnss_compat.so.2 755 0 0 
    3636file /lib/libnss_files.so.2 /lib/libnss_files.so.2 755 0 0 
     37file /lib/libselinux.so.1 /lib/libselinux.so.1 755 0 0 
    3738file /lib/libuuid.so.1 /lib/libuuid.so.1 755 0 0 
    3839file /lib/terminfo/l/linux /lib/terminfo/l/linux 755 0 0 
     
    8889file /lib/libblkid.so.1 /lib/libblkid.so.1 755 0 0 
    8990file /lib/libe2p.so.2 /lib/libe2p.so.2 755 0 0 
     91slink /sbin/mkfs.ext2 ../bin/mke2fs 755 0 0 
     92slink /sbin/mkfs.ext3 ../bin/mke2fs 755 0 0 
     93slink /sbin/mkfs.ext4 ../bin/mke2fs 755 0 0 
     94 
     95# mount 
     96file /bin/mount /bin/mount 755 0 0 
     97file /bin/umount /bin/umount 755 0 0 
     98file /lib/libvolume_id.so.1 /lib/libvolume_id.so.1 755 0 0 
     99file /lib/libsepol.so.1 /lib/libsepol.so.1 755 0 0 
    90100 
    91101# mkdosfs 
     
    160170 
    161171# udev 
    162 file /lib/libselinux.so.1 /lib/libselinux.so.1 755 0 0 
    163172file /sbin/insmod /sbin/insmod 755 0 0 
    164173file /sbin/modprobe /sbin/modprobe 755 0 0 
  • main/linuxmuster-linbo/trunk/conf/kernel.conf

    r495 r499  
    22# Automatically generated make config: don't edit 
    33# Linux kernel version: 2.6.30 
    4 # Fri Jun 12 14:46:31 2009 
     4# Wed Jun 24 19:13:52 2009 
    55# 
    66# CONFIG_64BIT is not set 
     
    153153CONFIG_STOP_MACHINE=y 
    154154CONFIG_BLOCK=y 
    155 # CONFIG_LBD is not set 
     155CONFIG_LBD=y 
    156156# CONFIG_BLK_DEV_BSG is not set 
    157 # CONFIG_BLK_DEV_INTEGRITY is not set 
     157CONFIG_BLK_DEV_INTEGRITY=y 
    158158 
    159159# 
     
    17381738CONFIG_FILE_LOCKING=y 
    17391739# CONFIG_XFS_FS is not set 
     1740# CONFIG_GFS2_FS is not set 
    17401741# CONFIG_OCFS2_FS is not set 
    17411742# CONFIG_BTRFS_FS is not set 
     
    20742075CONFIG_CRC_CCITT=y 
    20752076CONFIG_CRC16=y 
    2076 # CONFIG_CRC_T10DIF is not set 
     2077CONFIG_CRC_T10DIF=y 
    20772078# CONFIG_CRC_ITU_T is not set 
    20782079CONFIG_CRC32=y 
  • main/linuxmuster-linbo/trunk/debian/changelog

    r496 r499  
    11linuxmuster-linbo (1.1.21-1) unstable; urgency=low 
    22 
     3  * package: removed kexec-tools from build dependencies 
    34  * linbofs: 
    4     - improved menu.lst handling in linbo_cmd, custom menu.lsts were not touched anymore, 
    5       computing menu.lst entry number for windows systems with reboot workaround to be able 
    6       to set the grub default accordingly. 
     5    - changed from busybox mount/unount to Ubuntu's mount/umount 
     6    - added ext4 support for linux clients. 
     7    - updated to rsync 3.0.6 
     8    - linbo_cmd: 
     9      o improved menu.lst handling in linbo_cmd, custom menu.lsts were not 
     10        touched anymore, computing menu.lst entry number for windows systems 
     11        with reboot workaround to be able to set the grub default accordingly. 
     12      o improved linux client fstab patching: 
     13        fstab will be patched only on synchronized start not on every start, 
     14        if fstype of root partition differs it will be corrected. 
    715       
    8  -- Thomas Schmitt <schmitt@lmz-bw.de>  Tue, 23 Jun 2009 18:35:05 +0200 
     16 -- Thomas Schmitt <schmitt@lmz-bw.de>  Fri, 26 Jun 2009 20:00:14 +0200 
    917 
    1018linuxmuster-linbo (1.1.20-1) unstable; urgency=low 
     
    3341      o removed insmod and modprobe 
    3442    - grub4dos: new upstream version 0.4.4-2009-06-11 
    35     - kexec now taken from Jaunty 
     43    - kexec, insmod and modprobe now taken from Ubuntu 
    3644 
    3745 -- Thomas Schmitt <schmitt@lmz-bw.de>  Sat, 13 Jun 2009 18:05:05 +0200 
  • main/linuxmuster-linbo/trunk/debian/control

    r495 r499  
    44Maintainer: Thomas Schmitt <schmitt@lmz-bw.de> 
    55Build-Depends: debhelper (>=7.0.17ubuntu4), build-essential (>=11.4), fakeroot, wget, udev (>=141-1.1), udev-extras, 
    6                nasm, syslinux, ncurses-base, kexec-tools (>=20090000-2.0.0ubuntu3), coreutils, sysvinit-utils, util-linux, 
     6               nasm, syslinux, ncurses-base, coreutils, sysvinit-utils, util-linux, 
    77               tetex-base, libstdc++6, reiserfsprogs, e2fsprogs, dosfstools, unzip, tar, gzip, gettext, zlib1g-dev, 
    88               libncurses5-dev, tetex-bin, tetex-extra, udpcast, perl, libpopt-dev, libacl1-dev, libattr1-dev, 
  • main/linuxmuster-linbo/trunk/debian/md5sums.src

    r495 r499  
    4482476af067f5325ebb8be30e5350f839  grub4dos-0.4.4-2009-06-11-src.zip 
    55d9f2ecd3c3307905f24130a25816e6cc  kexec-tools-2.0.0.tar.bz2 
    6 d5bb5a59bc26337cc8b93a430ff407a1  linux-2.6.30.tar.bz2 
     67a80058a6382e5108cdb5554d1609615  linux-2.6.30.tar.bz2 
    776fad0a69ac89440ad4f696dbbbf11497  ms-sys-2.1.3.tgz 
    88e0b5c170f088a8d82968f0a6b34d31da  ntfs-3g-2009.4.4.tgz 
    992b39dece8897bc748f4ab4c40ec7699e  ntfsprogs-2.0.0.tar.bz2 
    1010e649dc2587954e1a55c4acf6667a96fc  qt-embedded-free-3.3.7.tar.bz2 
    11 46183b8ba930c846551e04736eec9515  rsync-3.0.6pre1.tar.gz 
     11e9865d093a18e4668b9d31b635dc8e99  rsync-3.0.6.tar.gz 
    1212257ac04e62ab7e3616e220333a1140cb  ssmtp_2.62.orig.tar.gz 
    1313c9f4e73e385c86b3a8faf9b615a04836  syslinux-3.82.tar.bz2 
  • main/linuxmuster-linbo/trunk/linbo/etc/udev/links.conf

    r495 r499  
    77M null c 1 3 
    88M ppp c 108 0 
     9M cloop0 b 240 0 
     10M cloop1 b 240 1 
     11M cloop2 b 240 2 
     12M cloop3 b 240 3 
     13M cloop4 b 240 4 
     14M cloop5 b 240 5 
     15M cloop6 b 240 6 
     16M cloop7 b 240 7 
     17L cloop cloop0 
    918L core /proc/kcore 
    1019L fd /proc/self/fd 
  • main/linuxmuster-linbo/trunk/linbo/linbo_cmd.sh

    r496 r499  
    271271 # fix vanished cloop device 
    272272 if [ "$1" = "/dev/cloop" ]; then 
    273   [ -e "/dev/cloop" ] || ln -s /dev/cloop0 /dev/cloop 
     273  [ -e "/dev/cloop" ] || ln -sf /dev/cloop0 /dev/cloop 
    274274 fi 
    275275 for i in 1 2 3 4 5; do 
     
    315315  swap) mkswap "$1" ;; 
    316316  reiserfs) mkreiserfs -f -f  "$1" ;; 
    317   ext2) mke2fs -b 4096 -f 4096 -m 0 "$1" ;; 
    318   ext3) mke2fs -b 4096 -f 4096 -m 0 -j "$1" ;; 
     317  ext2|ext3|ext4) mkfs."$2" "$1" ;; 
    319318  [Nn][Tt][Ff][Ss]*) mkfs.ntfs -Q "$1" ;; 
    320319  *[Ff][Aa][Tt]*) mkdosfs -F 32 "$1" ;; 
     
    516515} 
    517516 
    518 # tschmitt 
    519 # patch fstab with root partition 
    520 patch_fstab(){ 
    521  echo -n "patch_fstab " ;  printargs "$@" 
    522  local appendstr="$1" 
    523  local line="" 
    524  local rootpart="" 
    525  local found="" 
    526  local item="" 
    527  for item in $appendstr; do 
    528   echo $item | grep -q ^root && rootpart=`echo $item | awk -F\= '{ print $2 }'` 
    529  done 
    530  [ -z "$rootpart" ] && return 1 
    531  [ -e /tmp/fstab ] && rm -f /tmp/fstab 
    532  while read line; do 
    533   mntpnt=`echo $line | awk '{ print $2 }'` 
    534   if [ "$mntpnt" = "/" -a "$found" = "" ] && ! echo "$line" | grep ^#; then 
    535    echo "$line" | sed -e 's,.* /,'"$rootpart"' /,' - >> /tmp/fstab 
    536    found=yes 
    537   else 
    538     echo "$line" >> /tmp/fstab 
    539   fi 
    540  done </mnt/etc/fstab 
    541  if [ -n "$found" ]; then 
    542   echo "Setze Rootpartition in fstab -> $rootpart." 
    543   mv -f /mnt/etc/fstab /mnt/etc/fstab.bak 
    544   mv -f /tmp/fstab /mnt/etc 
    545  fi 
    546 } 
    547  
    548 # compute grub menu.lst entry number: boot 
     517# compute grub menu.lst entry number: grubnr boot 
    549518grubnr(){ 
    550519 [ -s /cache/boot/grub/menu.lst ] || return 1 
     
    630599   # change bootloader for win98 systems 
    631600   APPEND="$(echo $APPEND | sed -e 's/ntldr/io.sys/')" 
    632   elif [ -e /mnt/etc/fstab ]; then 
    633    # tschmitt: patch fstab with root device 
    634    patch_fstab "$APPEND" 
    635601  fi 
    636602 else 
     
    1008974} 
    1009975 
     976# tschmitt 
     977# patch fstab with root partition and root fstype: patch_fstab rootdev 
     978patch_fstab(){ 
     979 echo -n "patch_fstab " ;  printargs "$@" 
     980 local rootdev="$1" 
     981 local line="" 
     982 local found="" 
     983 local fstype_mount="" 
     984 local fstype_fstab="" 
     985 local mntpnt="" 
     986 local changed="" 
     987 local rootdev_fstab="" 
     988 local options="" 
     989 local dump="" 
     990 local pass="" 
     991 [ -z "$rootdev" ] && return 1 
     992 [ -e "$rootdev" ] || return 1 
     993 [ -e /tmp/fstab ] && rm -f /tmp/fstab 
     994 while read line; do 
     995  if [ -n "$line" -a "${line:0:1}" != "#" ]; then 
     996   mntpnt="$(echo "$line" | awk '{ print $2 }')" 
     997   if [ "$mntpnt" = "/" -a -z "$found" ]; then 
     998    found=yes 
     999    rootdev_fstab="$(echo "$line" | awk '{ print $1 }')" 
     1000    [ -z "$rootdev_fstab" ] && return 1 
     1001    fstype_fstab="$(echo "$line" | awk '{ print $3 }')" 
     1002    [ -z "$fstype_fstab" ] && return 1 
     1003    options="$(echo "$line" | awk '{ print $4 }')" 
     1004    [ -z "$options" ] && return 1 
     1005    dump="$(echo "$line" | awk '{ print $5 }')" 
     1006    [ -z "$dump" ] && return 1 
     1007    pass="$(echo "$line" | awk '{ print $6 }')" 
     1008    [ -z "$pass" ] && return 1 
     1009    if [ "$rootdev_fstab" != "$rootdev" ]; then 
     1010     # change root partition if necessary 
     1011     echo "Setze Rootpartition: $rootdev." 
     1012     rootdev_fstab="$rootdev" 
     1013     line="$rootdev_fstab $mntpnt $fstype_fstab $options $dump $pass" 
     1014     changed=yes 
     1015    fi # rootdev 
     1016    # check for changed filesytem type if partition was formatted 
     1017    fstype_mount="$(cat /proc/mounts | grep "^$rootdev" | awk '{ print $3 }')" 
     1018    [ -z "$fstype_mount" ] && return 1 
     1019    if [ "$fstype_fstab" != "$fstype_mount" ]; then 
     1020     # change filesystem 
     1021     echo "Setze Dateisystem: $fstype_mount." 
     1022     fstype_fstab="$fstype_mount" 
     1023     line="$rootdev_fstab $mntpnt $fstype_fstab $options $dump $pass" 
     1024     changed=yes 
     1025    fi # fstype 
     1026   fi # mntpnt 
     1027  fi # line 
     1028  echo "$line" >> /tmp/fstab 
     1029 done </mnt/etc/fstab # reading fstab 
     1030 if [ -n "$changed" ]; then 
     1031  mv -f /mnt/etc/fstab /mnt/etc/fstab.bak 
     1032  mv -f /tmp/fstab /mnt/etc 
     1033 fi 
     1034} 
     1035 
    10101036# syncl cachedev baseimage image bootdev rootdev kernel initrd append [force] 
    10111037syncl(){ 
    10121038 local RC=1 
    10131039 local patchfile="" 
     1040 local rootdev="$5" 
    10141041 echo -n "syncl " ; printargs "$@" 
    10151042 mountcache "$1" || return "$?" 
     
    10641091    rm -f "$TMP" 
    10651092   fi 
     1093   # patching for linux systems 
     1094   # hostname 
    10661095   if [ -f /mnt/etc/hostname ]; then 
    10671096    if [ -n "$HOSTNAME" ]; then 
     
    10701099    fi 
    10711100   fi 
     1101   # fstab 
     1102   [ -f /mnt/etc/fstab ] && patch_fstab "$rootdev" 
    10721103   sync; sync; sleep 1 
    10731104   umount /mnt || umount -l /mnt 
Note: See TracChangeset for help on using the changeset viewer.