Skip to contentSkip to conversation

bootchart module cleanup

PATCH In review Andrey Borzenkov 2 participants 2 messages Aug 11, 2010 – Aug 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootchart module cleanup

- create /lib/bootchart in initramfs, not in live filesystem
- use proper dracut API to install files

---

 modules.d/00bootchart/install |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
modules.d/00bootchart/install +3 -2
index ff29de0..8738815 100644
@@ -2,8 +2,8 @@
 
 inst /sbin/bootchartd 
 inst /bin/bash 
-ln -s /init "${initdir}/sbin/init"
-mkdir -p /lib/bootchart/
+inst_symlink /init /sbin/init
+inst_dir /lib/bootchart/
 inst /lib/bootchart/bootchart-collector 
 inst /etc/bootchartd.conf 
 inst /sbin/accton 
@@ -12,4 +12,5 @@ inst /bin/echo
 inst /bin/grep 
 inst /bin/usleep
 inst /usr/bin/[  /bin/[
+
 mknod -m 0666 "${initdir}/dev/null" c 1 3
#1 lore raw

pushed

Quoted 36 lines · Andrey Borzenkov

- create /lib/bootchart in initramfs, not in live filesystem
- use proper dracut API to install files

---

  modules.d/00bootchart/install |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)
modules.d/00bootchart/install +3 -3
index ff29de0..8738815 100644
@@ -2,8 +2,8 @@
 
  inst /sbin/bootchartd
  inst /bin/bash
-ln -s /init "${initdir}/sbin/init"
-mkdir -p /lib/bootchart/
+inst_symlink /init /sbin/init
+inst_dir /lib/bootchart/
  inst /lib/bootchart/bootchart-collector
  inst /etc/bootchartd.conf
  inst /sbin/accton
@@ -12,4 +12,5 @@ inst /bin/echo
  inst /bin/grep
  inst /bin/usleep
  inst /usr/bin/[  /bin/[
+
  mknod -m 0666 "${initdir}/dev/null" c 1 3
 
--

To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html