- Timestamp:
- Apr 29, 2014, 9:32:32 PM (11 years ago)
- Location:
- branches/3.2/mindi
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/deplist.d/lvm.conf
r2465 r3274 93 93 /usr/sbin/lvs 94 94 /usr/sbin/lvscan 95 96 /usr/sbin/lvmetad -
branches/3.2/mindi/deplist.d/udev.conf
r3172 r3274 23 23 24 24 # Systemd 25 /usr/lib/systemd/systemd-udevd 25 /etc/systemd 26 /usr/lib/systemd 27 /usr/lib/kernel 28 /usr/lib/tmpfiles.d 29 /var/lib/systemd 30 /usr/share/systemd 31 /usr/sbin/runlevel 32 /usr/sbin/udevadm 33 /usr/sbin/halt 34 /usr/bin/bootctl 35 /usr/bin/halt 36 /usr/bin/hostnamectl 37 /usr/bin/journalctl 38 /usr/bin/kernel-install 39 /usr/bin/localectl 40 /usr/bin/loginctl 41 /usr/bin/machinectl 42 /usr/bin/poweroff 43 /usr/bin/reboot 44 /usr/bin/systemd 45 /usr/bin/systemd-analyze 46 /usr/bin/systemd-ask-password 47 /usr/bin/systemd-cat 48 /usr/bin/systemd-cgls 49 /usr/bin/systemd-cgtop 50 /usr/bin/systemd-coredumpctl 51 /usr/bin/systemd-delta 52 /usr/bin/systemd-detect-virt 53 /usr/bin/systemd-inhibit 54 /usr/bin/systemd-machine-id-setup 55 /usr/bin/systemd-notify 56 /usr/bin/systemd-nspawn 57 /usr/bin/systemd-run 58 /usr/bin/systemd-stdio-bridge 59 /usr/bin/systemd-tmpfiles 60 /usr/bin/systemd-tty-ask-password-agent 61 /usr/bin/timedatectl 62 63 # systemd needs dbus 64 /usr/bin/dbus-daemon 65 /usr/bin/dbus-launch 66 /etc/dbus-1 26 67 27 68 /sbin/udevstart.static -
branches/3.2/mindi/rootfs/etc/group
r1733 r3274 17 17 cdrom::24: 18 18 tape::26: 19 lock::54: 19 20 plugdev::46: 20 21 audio::81: … … 24 25 fuse::106: 25 26 nogroup::65534: 27 rpc:x:491: 28 rpcuser:x:490: 29 messagebus:x:499: 30 dbus:x:81: -
branches/3.2/mindi/rootfs/etc/init.d/rcS
r3252 r3274 1 #!/bin/ sh1 #!/bin/bash 2 2 # 3 3 # $Id$ … … 5 5 # init script launched during the restore process 6 6 #------------------------------------------------------------ 7 8 7 9 8 CaughtSoftReset() { … … 105 104 openvt $opt 7 /bin/sh /sbin/wait-for-petris 106 105 openvt $opt 8 /usr/bin/tail -f $LOGFILE 107 openvt $opt 9 /usr/bin/tail -f /var/log/messages 106 if [ -f /var/log/messages ]; then 107 openvt $opt 9 /usr/bin/tail -f /var/log/messages 108 fi 108 109 # May avoid shell error messages 109 110 chmod 666 /dev/tty* /dev/console 110 111 # By default first serial line is configured as tty 111 # Required to have a correct serial console support (MP on ia64 or VSP with iLO 2e.g.)112 # Required to have a correct serial console support (MP on ia64 or VSP with iLO e.g.) 112 113 for i in `cat /proc/cmdline` ; do 113 114 echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2` 114 115 done 115 116 # Doing that is only valid when using a real serial line 116 117 if [[ $serial != "" && -e $serial ]]; then 117 118 LogIt "Redirecting serial $serial to /dev/tty" 1 118 119 ln -s -f $serial /dev/tty … … 139 140 cd $GROOVY 140 141 [ "$1" != "" ] && tapedev=$1 141 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo -restore.cfg 2>/dev/null | tr -s ' ' ' ' | cut -d' ' -f2`142 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondorestore.cfg 2>/dev/null | tr -s ' ' ' ' | cut -d' ' -f2` 142 143 mt -f $tapedev rewind 143 144 if [ $? -ne 0 ]; then … … 210 211 if [ "$res" -eq "0" ] ; then 211 212 # Store the dev name in case we changed it interactively 212 if [ -f "/tmp/mondo -restore.cfg" ]; then213 sed -i "s/^media-dev .*$/media-dev $tapedev/" /tmp/mondo -restore.cfg213 if [ -f "/tmp/mondorestore.cfg" ]; then 214 sed -i "s/^media-dev .*$/media-dev $tapedev/" /tmp/mondorestore.cfg 214 215 fi 215 216 fi … … 288 289 fi 289 290 if [ "$res" -eq "0" ] ; then 290 LogIt "OK, I am running on a CD-ROM. Good." 3291 LogIt "OK, I am running on a CD-ROM. Good." 1 291 292 CD_MOUNTED_OK=yes 292 293 else 293 LogIt "You probably not have the right drivers" 3294 LogIt "to support the hardware on which we are running" 3295 LogIt "Your archives are probably fine but" 3296 LogIt "your tape streamer and/or CD-ROM drive are unsupported at that point." 3294 LogIt "You probably not have the right drivers" 1 295 LogIt "to support the hardware on which we are running" 1 296 LogIt "Your archives are probably fine but" 1 297 LogIt "your tape streamer and/or CD-ROM drive are unsupported at that point." 1 297 298 CD_MOUNTED_OK="" 298 299 fi … … 324 325 if [ ! -e "/dev/.devfsd" ] ; then 325 326 mount -t devfs devfs /dev 2>> $LOGFILE 326 327 LogIt "Error while trying to mount devfs"327 if [ "$?" -ne "0" ] ; then 328 LogIt "Error while trying to mount devfs" 328 329 else 329 LogIt "Devfs mounted OK"330 LogIt "Devfs mounted OK" 330 331 fi 331 332 fi … … 372 373 373 374 RunUdevd() { 374 # Inspiration from Mandriva 2008.0 startup script 375 echo "Preparing udev environment..." 376 LogIt "Preparing udev environment..." 375 # Initial Inspiration from Mandriva 2008.0 startup script 376 LogIt "Preparing udev environment..." 1 377 377 mv /dev /dev.static 378 378 mkdir /dev … … 401 401 /usr/bin/udevd --daemon & 402 402 elif [ -x /usr/lib/systemd/systemd-udevd ]; then 403 /usr/lib/systemd/systemd-udevd --daemon & 403 # from https://github.com/hut/minirc/blob/master/rc 404 mkdir -p /run/systemd/journal 405 /usr/lib/systemd/systemd-udevd --daemon 406 udevadm trigger --action=add --type=subsystems 407 udevadm trigger --action=add --type=devices 404 408 fi 405 409 echo "Waiting for udev to start..." 406 410 sleep 5 407 LogIt "udev started manually" 411 LogIt "udev started manually" 1 408 412 fi 409 413 mkdir -p /dev/.udev/queue/ … … 481 485 fi 482 486 if [ -e "/tmp/i-want-my-lvm" ] ; then 487 # Recent LVM need this caching daemon to work 488 if [ -x /usr/sbin/lvmetad ]; then 489 /usr/sbin/lvmetad 490 fi 483 491 LogIt "Scanning LVM's..." 1 484 492 if which lvm ; then … … 668 676 local res 669 677 mount | grep /mnt/cdrom && return 0 670 [ "`grep "backup_media_type" /tmp/mondo -restore.cfg 2> /dev/null | grep "cdstream"`" ] && return678 [ "`grep "backup_media_type" /tmp/mondorestore.cfg 2> /dev/null | grep "cdstream"`" ] && return 671 679 LogIt "Trying to mount CD-ROM a 2nd time..." 672 680 find-and-mount-cdrom --second-try … … 700 708 umount /tmp/tmpfs > /dev/null 2> /dev/null 701 709 rmdir /tmp/tmpfs 702 ln -sf /mnt/RESTORING/tmp /tmp/tmpfs; # used by mondo -restore710 ln -sf /mnt/RESTORING/tmp /tmp/tmpfs; # used by mondorestore 703 711 LogIt "Failed to mount /tmp/tmpfs; using ugly softlink instead" 704 712 else … … 742 750 743 751 # In some cases, the OBDR tape remains in CD-ROM mode. This branch solves that issue (#498) 744 if [ "`grep -i 'obdr ' /tmp/mondo -restore.cfg 2>/dev/null`" ] && [ -x /usr/bin/hpsa_obdr_mode ]; then752 if [ "`grep -i 'obdr ' /tmp/mondorestore.cfg 2>/dev/null`" ] && [ -x /usr/bin/hpsa_obdr_mode ]; then 745 753 for lun in `/usr/bin/hpsa_obdr_mode -m query /dev/cciss/* 2>&1 | grep "is an OBDR device" | cut -d' ' -f4`; do 746 754 /usr/bin/hpsa_obdr_mode -m query -l $lun /dev/cciss/* 2>&1 | grep -q "is in CD-ROM mode" … … 852 860 export PATH GROOVY USER LOGFILE ARCH 853 861 854 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV})"855 856 862 mount -o remount rw / 863 rm -f $LOGFILE 864 865 # Creates log file 866 LogIt "" 867 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV})" | tee -a $LOGFILE 868 869 mkdir /proc 2> /dev/null 870 mount /proc /proc -v -t proc 2>> $LOGFILE 871 mkdir /sys 2> /dev/null 872 mount /sys /sys -v -t sysfs 2>> $LOGFILE 873 874 # Redirect every message to the LOGFILE 875 exec > >(tee -a ${LOGFILE}) 876 exec 2> >(tee -a ${LOGFILE} >&2) 877 857 878 [ ! "$GROOVY" ] && Die "I'm not groovy!" 858 879 for i in $GROOVY /mnt/cdrom /mnt/isodir /var/local/petris /tmp/isodir; do 859 880 mkdir -p $i 860 881 done 861 #/bin/update862 mkdir /proc 2> /dev/null863 mount /proc/ /proc -v -t proc864 mkdir /sys 2> /dev/null865 mount /sys/ /sys -v -t sysfs 2>> $LOGFILE866 882 # For ESX 3 867 883 [ -d /proc/vmware ] && ! grep -q /vmfs /proc/mounts && mount -t vmfs /vmfs /vmfs 868 rm -f /foozero869 884 870 885 if [ "`grep -i denymods /proc/cmdline`" ]; then … … 873 888 export DENY_MODS=" " 874 889 fi 875 if [ "`grep -i 'obdr ' /tmp/mondo -restore.cfg 2> /dev/null`" ]; then890 if [ "`grep -i 'obdr ' /tmp/mondorestore.cfg 2> /dev/null`" ]; then 876 891 # Do not try to load usb storage when dealing with OBDR it makes the modprobe hang :-( 877 892 export DENY_MODS="usb-storage $DENY_MODS" … … 911 926 LaunchTerminals 912 927 913 # Keeping kernel silent 928 # Keeping kernel silent for module insertion 914 929 PKLVL=`cut -f1 /proc/sys/kernel/printk` 915 930 echo 0 > /proc/sys/kernel/printk … … 922 937 #------------------------------- 923 938 UseTmpfs 924 if [ ! -e "/tmp/mondo -restore.cfg" ] ; then925 LogIt "Warning - /tmp/mondo -restore.cfg not found"939 if [ ! -e "/tmp/mondorestore.cfg" ] ; then 940 LogIt "Warning - /tmp/mondorestore.cfg not found" 926 941 fi 927 942 if [ "`grep -i pxe /proc/cmdline`" ] || [ "`grep -i net /proc/cmdline`" ]; then … … 930 945 fi 931 946 932 if [ "`grep -i 'obdr ' /tmp/mondo -restore.cfg 2>/dev/null`" ] || [ "`grep -i ' udev' /tmp/mondo-restore.cfg 2>/dev/null`" ]; then947 if [ "`grep -i 'obdr ' /tmp/mondorestore.cfg 2>/dev/null`" ] || [ "`grep -i ' udev' /tmp/mondorestore.cfg 2>/dev/null`" ]; then 933 948 HandleTape 934 949 ExtractDataDisksAndLoadModules … … 939 954 ExtractDataDisksAndLoadModules 940 955 # Fake the conf file to force it to NFS mode, even if we made originally a CD (mandatory for mondorestore to work correctly) 941 sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondo -restore.cfg942 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo -restore.cfg 2>/dev/null | grep media-type`" ]; then956 sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondorestore.cfg 957 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondorestore.cfg 2>/dev/null | grep media-type`" ]; then 943 958 . /sbin/start-usb 944 959 … … 1033 1048 fdisk -l >> $LOGFILE 1034 1049 LogIt "-------------" 1035 if [ -f /tmp/mondo -restore.cfg ]; then1036 LogIt "/tmp/mondo -restore.cfg result:" >> $LOGFILE1050 if [ -f /tmp/mondorestore.cfg ]; then 1051 LogIt "/tmp/mondorestore.cfg result:" >> $LOGFILE 1037 1052 LogIt "-------------" 1038 cat /tmp/mondo -restore.cfg >> $LOGFILE1053 cat /tmp/mondorestore.cfg >> $LOGFILE 1039 1054 fi 1040 1055 … … 1049 1064 ua=`UdevadmTrigger` 1050 1065 fi 1051 if grep "backup-media-type" /tmp/mondo -restore.cfg > /dev/null 2> /dev/null ; then1066 if grep "backup-media-type" /tmp/mondorestore.cfg > /dev/null 2> /dev/null ; then 1052 1067 LogIt "backup-media-type is specified in config file - great." 1053 1068 LogIt "Calling post-init" -
branches/3.2/mindi/rootfs/etc/passwd
r2953 r3274 8 8 daemon:x:2:2:daemon:/sbin: 9 9 adm:x:3:4:adm:/var/adm: 10 man:x:13:15:man:/usr/man:11 guest:x:405:100:guest:/dev/null:/dev/null12 10 rpc:x:492:491:system user for rpcbind:/var/lib/rpcbind:/sbin/nologin 13 11 rpcuser:x:491:490:system user for nfs-utils:/var/lib/nfs:/bin/false 14 12 nobody:x:65534:100:nobody:/dev/null: 13 messagebus:x:499:499:system user for dbus:/:/sbin/nologin 14 dbus:x:81:81:system user for dbus:/:/sbin/nologin -
branches/3.2/mindi/rootfs/etc/shadow
r2425 r3274 1 1 root:*:13956:0:99999:7::: 2 halt:*:13956:0:99999:7::: 3 operator:*:13956:0:99999:7::: 4 shutdown:*:13956:0:99999:7::: 5 sync:*:13956:0:99999:7::: 2 6 bin:*:13956:0:99999:7::: 7 ftp:*:13956:0:99999:7::: 3 8 daemon:*:13956:0:99999:7::: 4 9 adm:*:13956:0:99999:7::: 5 lp:*:13956:0:99999:7::: 6 sync:*:13956:0:99999:7::: 7 shutdown:*:13956:0:99999:7::: 8 halt:*:13956:0:99999:7::: 9 mail:*:13956:0:99999:7::: 10 news:*:13956:0:99999:7::: 11 uucp:*:13956:0:99999:7::: 12 operator:*:13956:0:99999:7::: 13 games:*:13956:0:99999:7::: 10 rpc:*:13956:0:99999:7::: 11 rpcuser:*:13956:0:99999:7::: 14 12 nobody:*:13956:0:99999:7::: 13 messagebus:*:13956:0:99999:7::: 14 dbus:*:13956:0:99999:7:::
Note:
See TracChangeset
for help on using the changeset viewer.