Blame 0006-add-rescue-dracut-module.patch
|
Harald Hoyer |
52ce14 |
From aede120c92e08712e5ab93b283b12ab5f3df510d Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
52ce14 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
52ce14 |
Date: Sat, 9 Mar 2013 15:15:41 +0100
|
|
Harald Hoyer |
52ce14 |
Subject: [PATCH] add rescue dracut module
|
|
Harald Hoyer |
52ce14 |
|
|
Harald Hoyer |
52ce14 |
---
|
|
Harald Hoyer |
52ce14 |
modules.d/03rescue/module-setup.sh | 19 +++++++++++++++++++
|
|
Harald Hoyer |
52ce14 |
1 file changed, 19 insertions(+)
|
|
Harald Hoyer |
52ce14 |
create mode 100755 modules.d/03rescue/module-setup.sh
|
|
Harald Hoyer |
52ce14 |
|
|
Harald Hoyer |
52ce14 |
diff --git a/modules.d/03rescue/module-setup.sh b/modules.d/03rescue/module-setup.sh
|
|
Harald Hoyer |
52ce14 |
new file mode 100755
|
|
Harald Hoyer |
52ce14 |
index 0000000..3f10b7c
|
|
Harald Hoyer |
52ce14 |
--- /dev/null
|
|
Harald Hoyer |
52ce14 |
+++ b/modules.d/03rescue/module-setup.sh
|
|
Harald Hoyer |
52ce14 |
@@ -0,0 +1,19 @@
|
|
Harald Hoyer |
52ce14 |
+#!/bin/bash
|
|
Harald Hoyer |
52ce14 |
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
Harald Hoyer |
52ce14 |
+# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
Harald Hoyer |
52ce14 |
+
|
|
Harald Hoyer |
52ce14 |
+check() {
|
|
Harald Hoyer |
52ce14 |
+ # do not add this module by default
|
|
Harald Hoyer |
52ce14 |
+ return 255
|
|
Harald Hoyer |
52ce14 |
+}
|
|
Harald Hoyer |
52ce14 |
+
|
|
Harald Hoyer |
52ce14 |
+depends() {
|
|
Harald Hoyer |
52ce14 |
+ return 0
|
|
Harald Hoyer |
52ce14 |
+}
|
|
Harald Hoyer |
52ce14 |
+
|
|
Harald Hoyer |
52ce14 |
+install() {
|
|
Harald Hoyer |
52ce14 |
+ dracut_install -o ps grep more cat rm strace free showmount \
|
|
Harald Hoyer |
52ce14 |
+ ping netstat rpcinfo vi scp ping6 ssh \
|
|
Harald Hoyer |
52ce14 |
+ fsck fsck.ext2 fsck.ext4 fsck.ext3 fsck.ext4dev fsck.vfat e2fsck
|
|
Harald Hoyer |
52ce14 |
+}
|
|
Harald Hoyer |
52ce14 |
+
|