====== openqrm-linuxrc ====== Im folgenden werden einige Änderungen gezeigt, die nötig sind. # vi /usr/share/openqrm/etc/templates/openqrm-linuxrc ---- vorher: rm -f /mplog1 echo "- (2) Starting hardware detection (all system components)" for module in `/sbin/pcimodules`; do echo " -- loading $module" modprobe -s -k "$module" done umount /tmp_download rmdir /tmp_download # start udev udevd --daemon # give time to settle, especially needed for some scsi devices sleep 3 } hachher: rm -f /mplog1 echo "- (2) Starting hardware detection (all system components)" for module in `/sbin/pcimodules`; do # WEG SKIP MODULE if [ "$module" == "matroxfb_base" ] || [ "$module" == "radeon" ] || [ "$module" == "radeonfb" ] ; then echo " -- skip this $module" else echo " -- loading $module" sleep 3 modprobe -s -k "$module" fi done umount /tmp_download rmdir /tmp_download # start udev #echo "- (2a) Starting udev" #udevd --daemon #udevd --daemon --debug # give time to settle, especially needed for some scsi devices # sleep 3 } ---- vorher: # main mount -t proc proc /proc # creating the devices echo "selbst geschriebene Version ..." echo "Creating the devices ..." makedevs -d /etc/initrd-devices.conf / mkdir -p /dev/fd ln -sf /proc/self/fd /dev/fd mknod /dev/tty c 5 0 mknod /dev/console c 5 1 mknod /dev/ptmx c 5 2 ln -sf /dev/ram1 /dev/ram mknod /dev/random c 1 8 mknod /dev/urandom c 1 9 echo 0x0100 > /proc/sys/kernel/real-root-dev echo 6 > /proc/sys/kernel/printk syslogd && klogd # need to run depmod 2 times as experienced depmod -a depmod -a # load virtio drivers for KVM VMs modprobe virtio 2>/mplog modprobe virtio_pci 2>/mplog modprobe virtio_ring 2>/mplog modprobe virtio_net 2>/mplog modprobe usbhid 2>/mplog rm -f /mplog echo "- (1) Starting hardware detection (network)" for module in `/sbin/pcimodules`; do echo " -- loading $module" modprobe -s -k "$module" done eval `cat /proc/cmdline` if grep -q sysfs /proc/filesystems ; then mount -t sysfs none /sys fi nachher: # main mount -t proc proc /proc # creating the devices echo "selbst geschriebenen Version ..." sleep 5 echo "Creating the devices ..." makedevs -d /etc/initrd-devices.conf / mkdir -p /dev/fd ln -sf /proc/self/fd /dev/fd mknod /dev/tty c 5 0 #mknod /dev/console c 5 1 ln -sf /dev/ram1 /dev/ram mknod /dev/random c 1 8 mknod /dev/urandom c 1 9 echo 0x0100 > /proc/sys/kernel/real-root-dev echo 6 > /proc/sys/kernel/printk syslogd && klogd # need to run depmod 2 times as experienced depmod -a depmod -a # load virtio drivers for KVM VMs modprobe virtio 2>/mplog modprobe virtio_pci 2>/mplog modprobe virtio_ring 2>/mplog modprobe virtio_net 2>/mplog # load usb drivers for keybord an mouse modprobe hid 2>/mplog modprobe usbhid 2>/mplog # rm -f /mplog eval `cat /proc/cmdline` if grep -q sysfs /proc/filesystems ; then mount -t sysfs none /sys fi echo "- (1a) Starting udev" udevd --daemon # give time to settle, especially needed for some scsi devices sleep 3 echo "- (1b) Starting hardware detection (network)" for module in `/sbin/pcimodules`; do echo " -- loading $module" modprobe -s -k "$module" done ---- vorher: # suchen und ersetzen sed -i "s#127\.0\.1\.1.*##g" /mnt/etc/hosts echo "127.0.1.1 $appliance_name.oqrm.victorvox.net $appliance_name" >> /mnt/etc/hosts echo "$appliance_name.oqrm.victorvox.net" > /mnt/etc/mailname nachher: hostname $appliance_name # suchen und ersetzen sed -i "s#127\.0\.1\.1.*##g" /mnt/etc/hosts echo "127.0.1.1 $appliance_name.oqrm.victorvox.net $appliance_name" >> /mnt/etc/hosts echo "$appliance_name.oqrm.victorvox.net" > /mnt/etc/mailname echo "$appliance_name" > /mnt/etc/hostname echo "Acquire::http::Proxy \"http://$OPENQRM_SERVER_IP_ADDRESS:3128/\";" > /mnt/etc/apt/apt.conf echo "Acquire::ftp::Proxy \"http://$OPENQRM_SERVER_IP_ADDRESS:3128/\";" >> /mnt/etc/apt/apt.conf echo "Acquire::https::Proxy \"http://$OPENQRM_SERVER_IP_ADDRESS:3128/\";" >> /mnt/etc/apt/apt.conf ---- vorher: # (common entries provided by a local function) create_fstab_commons # transfer resource basedir echo "Preparing resource openQRM client" echo "Insert eth0 mac in 70-persistent-net.rules" echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$OPENQRM_RESOURCE_MAC_ADDRESS\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"" >/etc/udev/rules.d/70-persistent-net.rules nachher: # (common entries provided by a local function) create_fstab_commons # transfer resource basedir echo "Preparing resource openQRM client" #echo "Insert eth0 mac in 70-persistent-net.rules" #echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$OPENQRM_RESOURCE_MAC_ADDRESS\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"" >/mnt/etc/udev/rules.d/70-persistent-net.rules # disable plymouth if [ -e /mnt/etc/init/plymouth-splash.conf ]; then echo "Deactivate plymouth" mv /mnt/etc/init/plymouth-splash.conf /mnt/etc/init/plymouth-splash.conf.disabled fi === ganz unten === Dieser Zusatz kann entfernt werden! vorher: ### in die HW-DB eintragen if $WGET -q -O hardwareinfos_zum_server_schicken.sh "$openqrm_web_protocol://$OPENQRM_SERVER_IP_ADDRESS/openqrm/boot-service/hardwareinfos_zum_server_schicken.sh"; then /bin/sh hardwareinfos_zum_server_schicken.sh fi nachher: ### in die HW-DB eintragen #if $WGET -q -O hardwareinfos_zum_server_schicken.sh "$openqrm_web_protocol://$OPENQRM_SERVER_IP_ADDRESS/openqrm/boot-service/hardwareinfos_zum_server_schicken.sh"; then # /bin/sh hardwareinfos_zum_server_schicken.sh #fi