Advertisement
Guest User

Untitled

a guest
Apr 16th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.50 KB | None | 0 0
  1. geninitrd: # $Revision: 12547 $ $Date:: 2012-04-16 17:34:53 +0200 #$ (geninitrd)
  2. geninitrd: Using _lib: lib64
  3. geninitrd: Using initrd_dir: /usr/lib64/initrd
  4. geninitrd: find_tool: found /usr/lib64/initrd/busybox
  5. geninitrd: # $Revision: 12458 $ $Date:: 2012-01-05 20:43:32 +0100 #$ (mod-ide)
  6. geninitrd: # $Revision: 12444 $ $Date:: 2011-12-07 20:32:09 +0100 #$ (mod-luks)
  7. geninitrd: find_tool: found /usr/lib64/initrd/cryptsetup
  8. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-multipath)
  9. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-dmraid)
  10. geninitrd: find_tool: found /usr/lib64/initrd/dmraid
  11. geninitrd: # $Revision: 12504 $ $Date:: 2012-03-19 20:34:11 +0100 #$ (mod-lvm)
  12. geninitrd: find_tool: found /usr/lib64/initrd/lvm
  13. geninitrd: # $Revision: 12377 $ $Date:: 2011-10-15 15:49:57 +0200 #$ (mod-md)
  14. geninitrd: find_tool: found /usr/lib64/initrd/mdassemble
  15. geninitrd: find_tool: found /sbin/mdadm
  16. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-blkid)
  17. geninitrd: find_tool: found /usr/lib64/initrd/blkid
  18. geninitrd: # $Revision: 12541 $ $Date:: 2012-04-08 20:58:05 +0200 #$ (mod-udev)
  19. geninitrd: find_tool: found /usr/lib64/initrd/udevd
  20. geninitrd: find_tool: found /usr/lib64/initrd/udevadm
  21. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-tuxonice)
  22. geninitrd: # $Revision: 12500 $ $Date:: 2012-03-18 17:32:24 +0100 #$ (mod-suspend)
  23. geninitrd: find_tool: found /usr/lib64/initrd/resume
  24. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-fbsplash)
  25. geninitrd: find_tool: found /usr/sbin/splash_geninitramfs
  26. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-condecor)
  27. geninitrd: find_tool: found /usr/sbin/splash_geninitramfs
  28. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-bootsplash)
  29. geninitrd: find_tool: did not find any of: /bin/splash.bin
  30. geninitrd: # $Revision: 12327 $ $Date:: 2011-08-19 21:40:53 +0200 #$ (mod-uvesafb)
  31. geninitrd: find_tool: did not find any of: /usr/lib64/initrd/v86d /sbin/v86d
  32. geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-nfs)
  33. geninitrd: # $Revision: 12415 $ $Date:: 2011-11-27 15:03:41 +0100 #$ (mod-sata)
  34. geninitrd: # $Revision: 12458 $ $Date:: 2012-01-05 20:43:32 +0100 #$ (mod-scsi)
  35. geninitrd: # $Revision: 12512 $ $Date:: 2012-03-24 19:27:54 +0100 #$ (mod-usbkbd)
  36. geninitrd: Using modprobe -c to get modules config
  37. geninitrd: Finding USB keyboard modules
  38. geninitrd: Finding SATA modules (class=0x0106)
  39. geninitrd: find_tool: found /sbin/lspci
  40. geninitrd: Using /dev/datavg/rootlv as device for rootfs
  41. geninitrd: Finding modules for device path /dev/datavg/rootlv
  42. geninitrd: is_luks: /dev/datavg/rootlv is not device mapper name
  43. geninitrd: LVM: /dev/datavg/rootlv is LVM node
  44. File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6899: /bin/sh
  45. geninitrd: LVM VG for /dev/datavg/rootlv: datavg
  46. File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6904: /bin/sh
  47. geninitrd: LVM PV for datavg: /dev/md0
  48. geninitrd: Finding modules for device path /dev/md0
  49. geninitrd: is_luks: /dev/md0 is not device mapper name
  50. geninitrd: Finding RAID details using mdadm for rootdev=/dev/md0
  51. geninitrd: md: found rootdev=/dev/md0 on device /dev/md0 with devices list /dev/sda2 /dev/sdb2
  52. geninitrd: Finding modules for device path /dev/sda2
  53. geninitrd: is_luks: /dev/sda2 is not device mapper name
  54. geninitrd: Finding SCSI modules using scsi_hostadapter
  55. geninitrd: Finding modules for device path /dev/sdb2
  56. geninitrd: is_luks: /dev/sdb2 is not device mapper name
  57. geninitrd: Finding SCSI modules using scsi_hostadapter
  58. geninitrd: LVM v2 enabled
  59. geninitrd: Building initrd...
  60. geninitrd: + cp /usr/lib64/initrd/busybox /root/tmp/initrd.f2Qq5y/bin/busybox
  61. geninitrd: Loading module [scsi_mod] with options [scan=sync ]
  62. geninitrd: Loading module [libata]
  63. geninitrd: Loading module [libahci]
  64. geninitrd: Loading module [ahci]
  65. geninitrd: Loading module [dm-mod]
  66. geninitrd: Loading module [md-mod]
  67. geninitrd: Loading module [raid1]
  68. geninitrd: Loading module [crc-t10dif]
  69. geninitrd: Loading module [sd_mod]
  70. geninitrd: Loading module [reiserfs]
  71. geninitrd: Loading module [mbcache]
  72. geninitrd: Loading module [jbd]
  73. geninitrd: Loading module [ext3]
  74. geninitrd: Loading module [scsi_wait_scan]
  75. geninitrd: Setting up udev...
  76. geninitrd: + cp /usr/lib64/initrd/udevd /root/tmp/initrd.f2Qq5y/sbin/udevd
  77. geninitrd: + cp /usr/lib64/initrd/udevadm /root/tmp/initrd.f2Qq5y/sbin/udevadm
  78. geninitrd: + cp /etc/udev/udev.conf /root/tmp/initrd.f2Qq5y/etc/udev/udev.conf
  79. geninitrd: + cp /lib/udev/rules.d/50-udev-default.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/50-udev-default.rules
  80. geninitrd: + cp /lib/udev/rules.d/60-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/60-persistent-storage.rules
  81. geninitrd: + cp /lib/udev/rules.d/80-drivers.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/80-drivers.rules
  82. geninitrd: + cp /lib/udev/rules.d/95-udev-late.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/95-udev-late.rules
  83. geninitrd: + cp /lib/udev/rules.d/10-dm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/10-dm.rules
  84. geninitrd: + cp /lib/udev/rules.d/11-dm-lvm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/11-dm-lvm.rules
  85. geninitrd: + cp /lib/udev/rules.d/13-dm-disk.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/13-dm-disk.rules
  86. geninitrd: + cp /lib/geninitrd/udev-rules/01-ignore.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/01-ignore.rules
  87. geninitrd: + cp /lib/geninitrd/udev-rules/59-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/59-persistent-storage.rules
  88. geninitrd: + cp /lib/geninitrd/udev-rules/61-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/61-persistent-storage.rules
  89. geninitrd: + cp /lib/geninitrd/udev-rules/11-dm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/11-dm.rules
  90. geninitrd: + cp /usr/lib64/initrd/udev/ata_id /root/tmp/initrd.f2Qq5y/lib/udev/ata_id
  91. geninitrd: + cp /usr/lib64/initrd/udev/cdrom_id /root/tmp/initrd.f2Qq5y/lib/udev/cdrom_id
  92. geninitrd: + cp /usr/lib64/initrd/udev/collect /root/tmp/initrd.f2Qq5y/lib/udev/collect
  93. geninitrd: + cp /usr/lib64/initrd/udev/scsi_id /root/tmp/initrd.f2Qq5y/lib/udev/scsi_id
  94. geninitrd: + cp /usr/lib64/initrd/udev/v4l_id /root/tmp/initrd.f2Qq5y/lib/udev/v4l_id
  95. geninitrd: WARNING: BLKID support missing
  96. geninitrd: + cp /sbin/dmsetup /root/tmp/initrd.f2Qq5y/sbin/dmsetup
  97. geninitrd: + cp /lib64/ld-linux-x86-64.so.2 /root/tmp/initrd.f2Qq5y/lib64
  98. geninitrd: + cp /lib64/libc.so.6 /root/tmp/initrd.f2Qq5y/lib64
  99. geninitrd: + cp /lib64/libdevmapper.so.1.02 /root/tmp/initrd.f2Qq5y/lib64
  100. geninitrd: + cp /lib64/libdl.so.2 /root/tmp/initrd.f2Qq5y/lib64
  101. geninitrd: + cp /lib64/libpthread.so.0 /root/tmp/initrd.f2Qq5y/lib64
  102. geninitrd: + cp /lib64/librt.so.1 /root/tmp/initrd.f2Qq5y/lib64
  103. geninitrd: + cp /lib64/libselinux.so.1 /root/tmp/initrd.f2Qq5y/lib64
  104. geninitrd: + cp /lib64/libsepol.so.1 /root/tmp/initrd.f2Qq5y/lib64
  105. geninitrd: + cp /lib64/libudev.so.0 /root/tmp/initrd.f2Qq5y/lib64
  106. geninitrd: Setting up mdadm...
  107. geninitrd: + cp /usr/lib64/initrd/mdassemble /root/tmp/initrd.f2Qq5y/bin/mdassemble
  108. geninitrd: echo Setting up array (/dev/md0 = /dev/sda2 /dev/sdb2)
  109. geninitrd: + cp /dev/sda2 /root/tmp/initrd.f2Qq5y/dev/sda2
  110. geninitrd: + cp /dev/sdb2 /root/tmp/initrd.f2Qq5y/dev/sdb2
  111. geninitrd: + cp /dev/md0 /root/tmp/initrd.f2Qq5y/dev/md0
  112. geninitrd: + cp /dev/sda1 /root/tmp/initrd.f2Qq5y/dev/sda1
  113. geninitrd: + cp /dev/sdb1 /root/tmp/initrd.f2Qq5y/dev/sdb1
  114. geninitrd: Adding LVM support to initrd
  115. geninitrd: + cp /usr/lib64/initrd/lvm /root/tmp/initrd.f2Qq5y/bin/lvm.static
  116. File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6687: /bin/sh
  117. geninitrd: Adding rootfs finding based on kernel cmdline root= option support.
  118. geninitrd: Current /proc/partitions:
  119. > major minor  #blocks  name
  120. >
  121. >    8       32   78182951 sdc
  122. >    8       33    4000153 sdc1
  123. >    8       34   74182766 sdc2
  124. >    8       16  312570167 sdb
  125. >    8       17      48163 sdb1
  126. >    8       18  312520477 sdb2
  127. >    8        0  312571224 sda
  128. >    8        1      48163 sda1
  129. >    8        2  312520477 sda2
  130. >    9        0  312520384 md0
  131. >  254        0    2097152 dm-0
  132. >  254        1   26214400 dm-1
  133. >  254        2  284164096 dm-2
  134. >   11        0     449512 sr0
  135. >    9        1      48064 md1
  136. geninitrd: + mkdir -p /root/tmp/initrd.f2Qq5y/dev/datavg
  137. geninitrd: + cp /dev/datavg/rootlv /root/tmp/initrd.f2Qq5y/dev/datavg/rootlv
  138. geninitrd: Current /linuxrc:
  139. > #!/bin/sh
  140. > # initrd generated by:
  141. > # $Revision: 12547 $ $Date:: 2012-04-16 17:34:53 +0200 #$
  142. >
  143. > [ -f /proc/cmdline ] || mount -t proc none /proc
  144. > # builtin defaults from geninitrd
  145. > ROOT=/dev/datavg/rootlv
  146. > ROOTFS=reiserfs
  147. > read CMDLINE < /proc/cmdline
  148. >
  149. > for arg in $CMDLINE; do
  150. > if [ "${arg}" = "debuginitrd" ]; then
  151. > DEBUGINITRD=yes
  152. > fi
  153. > if [ "${arg##debuginitrd=}" != "${arg}" ]; then
  154. > DEBUGINITRD=${arg##debuginitrd=}
  155. > fi
  156. > if [ "${arg##root=}" != "${arg}" ]; then
  157. > ROOT=${arg##root=}
  158. > fi
  159. > if [ "${arg##rootfsflags=}" != "${arg}" ]; then
  160. > ROOTFSFLAGS=${arg##rootfsflags=}
  161. > fi
  162. > if [ "${arg##init=}" != "${arg}" ]; then
  163. > INIT=${arg##init=}
  164. > fi
  165. > done
  166. >
  167. > # make debugshell() invoke subshell if $DEBUGINITRD=sh
  168. > if [ "$DEBUGINITRD" = "sh" ]; then
  169. > debugshell() {
  170. > echo "debug shell disabled by /etc/sysconfig/system: RUN_SULOGIN_ON_ERR setting"
  171. > }
  172. > else
  173. > debugshell() {
  174. > :
  175. > }
  176. > fi
  177. >
  178. > if [ "$DEBUGINITRD" ]; then
  179. > set -x
  180. > fi
  181. > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/scsi_mod.ko scan=sync
  182. > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/libata.ko
  183. > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/libahci.ko
  184. > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/ahci.ko
  185. > insmod /lib/modules/3.3.2-1/kernel/drivers/md/dm-mod.ko
  186. > insmod /lib/modules/3.3.2-1/kernel/drivers/md/md-mod.ko
  187. > insmod /lib/modules/3.3.2-1/kernel/drivers/md/raid1.ko
  188. > insmod /lib/modules/3.3.2-1/kernel/lib/crc-t10dif.ko
  189. > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/sd_mod.ko
  190. > insmod /lib/modules/3.3.2-1/kernel/fs/reiserfs/reiserfs.ko
  191. > insmod /lib/modules/3.3.2-1/kernel/fs/mbcache.ko
  192. > insmod /lib/modules/3.3.2-1/kernel/fs/jbd/jbd.ko
  193. > insmod /lib/modules/3.3.2-1/kernel/fs/ext3/ext3.ko
  194. > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/scsi_wait_scan.ko
  195. > rmmod scsi_wait_scan
  196. > : 'Creating /dev'
  197. > if ! mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev > /dev/null 2>&1; then
  198. > mount -o mode=0755,nosuid -t tmpfs tmpfs /dev
  199. > mknod /dev/console c 5 1
  200. > mknod /dev/null c 1 3
  201. > mknod /dev/zero c 1 5
  202. > mknod /dev/random c 1 8
  203. > mknod /dev/snapshot c 10 231
  204. > mknod /dev/urandom c 1 9
  205. > mknod /dev/ptmx c 5 2
  206. > mknod /dev/kmsg c 1 11
  207. > fi
  208. > mkdir /dev/pts
  209. > mkdir /dev/shm
  210. > mount -t sysfs none /sys
  211. > mount -t tmpfs run /run
  212. > : 'Starting udev'
  213. > mkdir /run/udev
  214. > /sbin/udevd --daemon
  215. > /sbin/udevadm trigger --type=subsystems --action=add
  216. > /sbin/udevadm trigger --type=devices --action=add
  217. > /sbin/udevadm settle
  218. > mdassemble
  219. >
  220. > if [ "" ]; then
  221. > [ -e /proc/mdstat ] && echo "/proc/mdstat contents:" && cat /proc/mdstat
  222. > fi
  223. > cat /etc/lvm.conf > /tmp/lvm.conf
  224. > : 'Making device nodes'
  225. > cat /proc/partitions | (
  226. > # ignore first two lines: header, empty line
  227. > read b; read b
  228. >
  229. > while read major minor blocks dev rest; do
  230. > node=/dev/$dev
  231. > mkdir -p ${node%/*}
  232. > [ -e $node ] || mknod $node b $major $minor
  233. > done
  234. > )
  235. > ROOTDEV=/dev/datavg/rootlv
  236. > LVM_ROOTVG="datavg"
  237. > LVM_SUSPENDVG=""
  238. > # parse rootdev from kernel commandline if it begins with /
  239. > case "$ROOT" in
  240. > /*)
  241. >
  242. > # rewrite:
  243. >       # /dev/mapper/sys-rootfs -> /dev/sys/rootfs
  244. > # /dev/mapper/blodnatt-blah--bleh -> /dev/blodnatt/blah-bleh
  245. > # /dev/mapper/vg--meaw-root -> /dev/vg-meaw/root
  246. > case "$ROOT" in
  247. > /dev/mapper/*-*)
  248. > # change "--" to / (as "/" is impossible in LV name)
  249. > local dev=$(awk -vdev="${ROOT#/dev/mapper/}" 'BEGIN{gsub(/--/, "/", dev); print dev}')
  250. > local VG=$(awk -vdev="$dev" 'BEGIN{split(dev, v, "-"); gsub("/", "-", v[1]); print v[1]}')
  251. > local LV=$(awk -vdev="$dev" 'BEGIN{split(dev, v, "-"); gsub("/", "-", v[2]); print v[2]}')
  252. > ROOT=/dev/$VG/$LV
  253. > ;;
  254. > esac
  255. >
  256. > if [ "$ROOT" != "$ROOTDEV" ]; then
  257. > ROOTDEV=$ROOT
  258. >
  259. > echo "LVM: Using 'root=$ROOTDEV' from kernel commandline"
  260. > local tmp=${ROOTDEV#/dev/}
  261. > if [ "$tmp" != "$ROOTDEV" ]; then
  262. > LVM_ROOTVG=${tmp%/*}
  263. > echo "LVM: Using Volume Group '$LVM_ROOTVG' for rootfs"
  264. > fi
  265. > fi
  266. > ;;
  267. > esac
  268. >
  269. > # skip duplicate VG
  270. > if [ "$LVM_SUSPENDVG" = "$LVM_ROOTVG" ]; then
  271. > LVM_VGVOLUMES="$LVM_ROOTVG"
  272. > else
  273. > LVM_VGVOLUMES="$LVM_SUSPENDVG $LVM_ROOTVG"
  274. > fi
  275. >
  276. > # disable noise from LVM accessing devices that aren't ready.
  277. > read printk < /proc/sys/kernel/printk
  278. > if [ ! "$DEBUGINITRD" ]; then
  279. > echo 0 > /proc/sys/kernel/printk
  280. > fi
  281. >
  282. > export LVM_SYSTEM_DIR=/tmp
  283. > : 'Scanning for Volume Groups'
  284. > lvm.static vgscan --mknodes --ignorelockingfailure 2>/dev/null
  285. >
  286. > : 'Activating Volume Groups'
  287. > for vol in $LVM_VGVOLUMES; do
  288. > lvm.static vgchange --ignorelockingfailure -a y $vol 2>/dev/null
  289. > done
  290. >
  291. > echo "$printk" > /proc/sys/kernel/printk
  292. >
  293. > # Find out major/minor
  294. > attrs="$(lvm.static lvdisplay --ignorelockingfailure -c $ROOTDEV 2>/dev/null)"
  295. > if [ "$attrs" ]; then
  296. > majmin="${attrs#*$ROOTDEV*:*:*:*:*:*:*:*:*:*:*:*}"
  297. > if [ "$majmin" != "$attrs" ]; then
  298. > major="${majmin%:*}"
  299. > minor="${majmin#*:}"
  300. > fi
  301. > fi
  302. >
  303. > if [ "$major" -a "$minor" ]; then
  304. > # Pass it to kernel
  305. > echo $((256 * $major + $minor)) > /proc/sys/kernel/real-root-dev
  306. > fi
  307. >
  308. > unset LVM_SYSTEM_DIR
  309. > if [ "${ROOT##/dev/}" != "${ROOT}" ]; then
  310. > rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
  311. > # fallback to ls
  312. > if [ -z "$rootnr" ]; then
  313. > rootnr="$(busybox ls -lL ${ROOT} | busybox awk '{if (/^b/) { print 256 * $3 + $4; }}')"
  314. > fi
  315. > if [ -n "$rootnr" ]; then
  316. > echo "$rootnr" > /proc/sys/kernel/real-root-dev
  317. > fi
  318. > fi
  319. > /sbin/udevadm control --exit
  320. > /sbin/udevadm info --cleanup-db
  321. > ifs=$IFS
  322. > IFS="
  323. > "
  324. > for i in $(export -p); do
  325. > i=${i#declare -x } # ksh/bash
  326. > i=${i#export } # busybox
  327. >
  328. > case "$i" in
  329. > *=*)
  330. > : ;;
  331. > *)
  332. > continue ;;
  333. > esac
  334. >
  335. > i=${i%%=*}
  336. >
  337. > [ -z "$i" ] && continue
  338. >
  339. > case "$i" in
  340. > ROOT|PATH|HOME|TERM)
  341. > :
  342. > ;;
  343. > *)
  344. > unset $i
  345. > ;;
  346. > esac
  347. > done
  348. > IFS=$ifs
  349. > device=
  350. > eval "$(busybox awk -v root="$ROOT" '
  351. > BEGIN {
  352. > num_pattern_short = "[0-9a-f][0-9a-f][0-9a-f]";
  353. > num_pattern = "[0-9a-f]" num_pattern_short;
  354. > dev_pattern = "[hms][a-z][a-z]([0-9])+";
  355. > partition = "";
  356. > min = -1; maj = -1;
  357. >
  358. > # see if we have /dev/hdX or hdX, we can just take partition name
  359. > if (root ~ "^\/dev\/" dev_pattern "$" || root ~ "^" dev_pattern "$") {
  360. > partition = root
  361. > sub("^/dev/", "", partition);
  362. >
  363. > } else {
  364. > # unify values first
  365. > if (root ~ "^" num_pattern_short "$")  {
  366. > # change "303" => "0x0303"
  367. > root = "0x0" root
  368. > } else if (root ~ "^" num_pattern "$")  {
  369. > # change "0303" => "0x0303"
  370. > root = "0x" root
  371. > }
  372. >
  373. > maj = sprintf("%d", "0x" substr(root, 3, 2));
  374. > min = sprintf("%d", "0x" substr(root, 5, 2));
  375. > }
  376. > }
  377. >
  378. > partition && $4 == partition { maj = $1; min = $2; }
  379. > $1 == maj && $2 == min { partition = $4; }
  380. >
  381. > END {
  382. > if (maj >= 0 && min >= 0) {
  383. > printf("maj=%s; min=%s;
  384. ", maj, min);
  385. > }
  386. > if (partition) {
  387. > printf("device=/dev/%s;
  388. ", partition);
  389. > }
  390. > }
  391. > ' /proc/partitions)"
  392. >
  393. > if [ -z "$device" ]; then
  394. > device=$ROOT
  395. > fi
  396. >
  397. > if [ "$device" -a ! -b $device ]; then
  398. > mknod $device b $maj $min
  399. > fi
  400. >
  401. > [ -n "$ROOTFSFLAGS" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
  402. >
  403. > mount -t $ROOTFS -r $device $ROOTFSFLAGS /newroot || echo "Mount of rootfs failed."
  404. > init=$INIT
  405. > if [ -z "$init" -o ! -x "/newroot$init" ]; then
  406. > init=/sbin/init
  407. > fi
  408. > : Last shell before umounting all and giving control over to real init.
  409. > debugshell
  410. > mount --bind /run /newroot/run
  411. > umount /run
  412. > umount /dev
  413. > umount /sys
  414. > umount /proc
  415. > [ ! -e /newroot/dev/console ] && mknod -m 660 /newroot/dev/console c 5 1
  416. > exec switch_root /newroot $init ${1:+"$@"}
  417. >
  418. > echo "Error! initramfs should not reach this place."
  419. > echo "It probably means you've got old version of busybox, with broken"
  420. > echo "initramfs support. Trying to boot anyway, but won't promise anything."
  421. >
  422. > exec chroot /newroot $init ${1:+"$@"}
  423. >
  424. > echo "Failed to chroot!"
  425. > debugshell
  426. geninitrd: image size: 14336 KiB (/root/tmp/initrd.f2Qq5y)
  427. geninitrd: Creating initramfs image /root/tmp/initrd.img-l1jMHD
  428. geninitrd: finding compressor: lzo gzip xz lzma bzip2 (via yes)
  429. geninitrd: Compressing initrd-test1 with gzip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement