dracut/parse-suse-initrd.sh
Robert Milasan 5b07b8f022 Accepting request 129273 from home:fcrozat:branches:Base:System
- Update to release 022:
  + fixed host-only kernel module bug
- Changes from release 021:
  + fixed systemd in the initramfs (requires systemd >= 187)
  + dracut-install: massive speedup with /var on the same
    filesystem with COW copy.
  + dracut-install: moved to /usr/lib/dracut until it becomes a
    general purpose toot
  + new options: "rd.usrmount.ro" and "rd.skipfsck"
  + less mount/umount
  + apply "ro" on the kernel command line also to /usr
  + mount according to fstab, if neither "ro" or "rw" is specified
  + skip fsck for xfs and btrfs. remount is enough
  + give emergency_shell if /usr mount failed
  + dracut now uses getopt:
    - options can be position independent now!!
    - we can now use --option=<arg>
  + added option "--kver=<kernel-version>", and the image location
    can be omitted : dracut --kver 3.5.0-0.rc7.git1.2.fc18.x86_64
  + dracut.sh: for --include copy also the symbolic links
  + man pages: lsinitrd and mkinitrd added
  + network: We do not support renaming in the kernel namespace
    anymore (as udev does that not anymore). So, if a user wants to
    use ifname, he has to rename to a custom namespace. "eth[0-9]+"
    is not allowed anymore.
  + resume: moved the resume process to the initqueue.
    This should prevent accidently mounting the root file system.
  + improve running testsuite
- Clean up package to be openSUSE only package and follow openSUSE
  standard.

OBS-URL: https://build.opensuse.org/request/show/129273
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=2
2012-07-30 18:02:55 +00:00

54 lines
1.2 KiB
Bash

#!/bin/sh
# convert openSUSE / SLE initrd command lines into dracut ones
# linuxrc=trace shell=1 sysrq=yes sysrq=1-9 journaldev mduuid
# TargetAddress TargetPort TargetName
# sysrq
sysrq=$(getarg sysrq)
if [ "$sysrq" ] && [ "$sysrq" != "no" ]; then
echo 1 > /proc/sys/kernel/sysrq
case "$sysrq" in
0|1|2|3|4|5|6|7|8|9)
echo $sysrq > /proc/sysrq-trigger
;;
esac
fi
# debug
if getarg linuxrc=trace; then
echo "rd.debug rd.udev.debug" >> /etc/cmdline.d/99-suse.conf
unset CMDLINE
fi
# debug shell
if getargbool 0 shell; then
echo "rd.break" >> /etc/cmdline.d/99-suse.conf
unset CMDLINE
fi
# journaldev
journaldev=$(getarg journaldev)
if [ -n "$journaldev" ]; then
echo "root.journaldev=$journaldev" >> /etc/cmdline.d/99-suse.conf
unset CMDLINE
fi
# mduuid
mduuid=$(getarg mduuid)
if [ -n "$mduuid"]; then
echo "rd.md.uuid=$mduuid" >> /etc/cmdline.d/99-suse.conf
unset CMDLINE
fi
# TargetAddress / TargetPort / TargetName
TargetAddress=$(getarg TargetAddress)
TargetPort=$(getarg TargetPort)
TargetName=$(getarg TargetName)
if [ -n "$TargetAddress" -a -n "$TargetName" ]; then
echo "netroot=iscsi:$TargetAddress::$TargetPort::$TargetName" >> /etc/cmdline.d/99-suse.conf
unset CMDLINE
fi