Changeset 4805
- Timestamp:
- 12/28/08 21:14:40 (4 years ago)
- Location:
- pkg/boss/main/initramfs-tools/trunk
- Files:
-
- 4 added
- 21 edited
-
conf/initramfs.conf (modified) (1 diff)
-
conf/modules (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
-
debian/control (modified) (1 diff)
-
debian/initramfs-tools.postrm (modified) (1 diff)
-
debian/initramfs-tools.preinst (modified) (1 diff)
-
hook-functions (modified) (10 diffs)
-
hooks/udevhelper (modified) (1 diff)
-
init (modified) (5 diffs)
-
initramfs-tools.8 (modified) (23 diffs)
-
initramfs.conf.5 (modified) (1 diff)
-
kernel (added)
-
kernel/postinst.d (added)
-
kernel/postrm.d (added)
-
mkinitramfs (modified) (1 diff)
-
mkinitramfs-kpkg.8 (modified) (1 diff)
-
mkinitramfs.8 (modified) (2 diffs)
-
scripts/functions (modified) (8 diffs)
-
scripts/init-top/all_generic_ide (added)
-
scripts/init-top/framebuffer (modified) (2 diffs)
-
scripts/local (modified) (2 diffs)
-
scripts/nfs (modified) (1 diff)
-
update-initramfs (modified) (2 diffs)
-
update-initramfs.8 (modified) (2 diffs)
-
update-initramfs.conf.5 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pkg/boss/main/initramfs-tools/trunk/conf/initramfs.conf
r2179 r4805 3 3 # Configuration file for mkinitramfs(8). See initramfs.conf(5). 4 4 # 5 # Note that configuration options from this file can be overriden 6 # by config files in the /etc/initramfs-tools/conf.d directory. 5 7 6 8 # -
pkg/boss/main/initramfs-tools/trunk/conf/modules
r2179 r4805 9 9 # raid1 10 10 # sd_mod 11 12 rtc_cmos 13 rtc_core 14 rtc_lib -
pkg/boss/main/initramfs-tools/trunk/debian/changelog
r3697 r4805 1 initramfs-tools (0.92.parsix.1) unstable; urgency=low 2 3 * Sync'd with Debian 0.92a 4 * Re-Added TuxOnIce fixes 5 6 -- Alan Baghumian <alan@technotux.org> Wed, 14 May 2008 19:34:07 +0200 1 initramfs-tools (0.92.parsix.2) unstable; urgency=low 2 3 * Sync'd with Debian 0.92n 4 * Readded TuxOnIce fixes 5 * Load RTC modules into initramfs 6 7 -- Alan Baghumian <alan@technotux.org> Sun, 28 Dec 2008 12:13:50 -0800 8 9 initramfs-tools (0.92n) unstable; urgency=high 10 11 [ Eugene Paskevich ] 12 * hook-functions: Fix MODULES=dep for lvm LABEL fstab notation. 13 (closes: #508906) 14 15 [ maximilian attems ] 16 * all_generic_ide: Also parse boolean bootoption. (closes: #507805) 17 * initramfs-tools.8: Document where to look up NFSOPTS. (closes: #502927) 18 * update-initramfs.8: List -d and mark the non-optional as such. 19 20 [ S. Sakar ] 21 * hook-functions: MODULES=dep fix encrypted loop device. 22 (closes: #499666) 23 24 -- maximilian attems <maks@debian.org> Fri, 19 Dec 2008 14:03:13 +0100 25 26 initramfs-tools (0.92m) unstable; urgency=medium 27 28 [ Colin Watson ] 29 * scripts/functions: Call ipconfig with a one-minute timeout. 30 * Make debug option write to /dev/.initramfs/initramfs.debug, 31 so that it can be retrieved after boot. 32 33 [ Julien Danjou ] 34 * scripts/functions: Wrong check for udevadm in functions. (closes: #507059) 35 36 [ maximilian attems ] 37 * scripts/functions: fix not set break variable. (closes: #502058) 38 * MODULES=dep fix for ida devices. 39 * hook-functions: alphebetize net drivers, fix typhoon typo. 40 * Add atl1e, cxgb, ixgb, ixgbe, mlx4_core, netxen_nic, sfc, tehuti to 41 net module list. (closes: #503216) 42 * nuke 0.92k goof clean up. 43 * postrm: set -e flag. 44 * Revert "framebuffer: Let udev create fb devices." 45 * scripts/functions: comment fix path to moved linux-2.6 46 Documentation. 47 * init: Don't leak initramfs-tools exported variables. 48 (closes: #426465, #505440) 49 50 [ dann frazier ] 51 * Fix MODULES=dep for cciss devices. (closes: #507619) 52 53 [ Michal Pokrywka ] 54 * framebuffer: Add support for uvesafb. (closes: #502056) 55 56 [ Andres Salomon ] 57 * fix redboot partition support. (closes: #504555) 58 59 -- maximilian attems <maks@debian.org> Tue, 16 Dec 2008 16:01:44 +0100 60 61 initramfs-tools (0.92l) unstable; urgency=high 62 63 * Revert "initramfs-tools: Add support for linux-2.6 make deb-pkg 64 target" (closes: #499270) thanks Vincent Danjean <vdanjean@debian.org>. 65 66 -- maximilian attems <maks@debian.org> Wed, 17 Sep 2008 15:38:05 +0200 67 68 initramfs-tools (0.92k) unstable; urgency=high 69 70 [ Martin Michlmayr ] 71 * update initramfs.conf according to latest Debian Installer. 72 * update-initramfs: don't run glantank-update-kernel. 73 74 [ maximilian attems ] 75 * auto_add_modules: add dasd_diag_mod to dasd section. 76 * initramfs-tools: Add support for linux-2.6 make deb-pkg target. 77 78 -- maximilian attems <maks@debian.org> Tue, 16 Sep 2008 14:55:04 +0200 79 80 initramfs-tools (0.92j) unstable; urgency=high 81 82 [ Gerfried Fuchs ] 83 * initramfs-tools.8: Nuke useless bold spaces. 84 * initramfs-tools.8: Fix manpage-has-errors-from-man. 85 86 [ maximilian attems ] 87 * Readd zfcp to auto_add_modules. (closes: #498698) 88 * Add dasd_diag_mod to auto_add_modules block section 89 Thanks Bastian Blank <waldi@debian.org>. 90 91 [ Martin Michlmayr ] 92 * initramfs.conf: Mention possible value overriding by d-i for 93 example. (closes: #498712) 94 95 -- maximilian attems <maks@debian.org> Sat, 13 Sep 2008 12:12:02 +0200 96 97 initramfs-tools (0.92i) unstable; urgency=high 98 99 * MODULES=dep fix for root lvm on md. (closes: #498237) 100 Thanks Rod Whitby <rod@whitby.id.au> for report and test. 101 102 -- maximilian attems <maks@debian.org> Mon, 08 Sep 2008 16:13:24 +0200 103 104 initramfs-tools (0.92g) unstable; urgency=high 105 106 [ maximilian attems ] 107 * wait_for_udev: s/udevsettle/udevadm/ for upgrades after Lenny. 108 * auto_add_modules: Add ext4 and ext4dev. (closes: #494922) 109 110 [ Andres Salomon ] 111 * Fix parse_numeric() to ignore non hex root string prefixes aka 112 root=mtd0 on OLPC. see #497133 113 114 -- maximilian attems <maks@debian.org> Tue, 02 Sep 2008 17:50:32 +0200 115 116 initramfs-tools (0.92f) unstable; urgency=medium 117 118 [ maximilian attems ] 119 * mkinitramfs: only lvm2 initramfs has busybox dep. (closes: #490875) 120 * mkinitramfs: Fix usage and man outfile arg is not optional. 121 (closes: #493238) 122 * preinst fix vol_id path. (closes: #494433) 123 * update-initramfs: run_bootloader() invoke flash-kernel and glantank- 124 update-kernel in order to have latest initramfs flashed on triggered 125 update. Thanks to Joey Hess <joeyh@debian.org>. 126 * debian/control: Newer standards version without changes. 127 128 [ Chris Lamb ] 129 * make log_begin_msg not emit trailing newline (closes: #494257) 130 131 [ Martin Michlmayr ] 132 * MODULES=dep boot fix for Orion. (closes: #494027) 133 134 -- maximilian attems <maks@debian.org> Tue, 12 Aug 2008 11:09:11 +0200 135 136 initramfs-tools (0.92e) unstable; urgency=medium 137 138 * udevhelper hook: drop ide.agent. 139 140 -- maximilian attems <maks@debian.org> Mon, 07 Jul 2008 13:52:54 +0200 141 142 initramfs-tools (0.92d) unstable; urgency=low 143 144 * Ubuntu merge 145 - More meaningful text for no root device panic from Ubuntu. 146 - Add virtio_pci, udf for MODULES=most root device support. 147 - usplash pulsates: drop code to increment a progress bar after 148 each message. 149 - initramfs-tools.preinst: Try to use UUID for resume device. 150 - add boot script loading ide-generic on all_generic_ide cmdline. 151 Thanks Frans Pop <elendil@planet.nl> for report. (closes: #485786) 152 * init: add possible mountroot break (closes: #488963) 153 * initramfs-tools.8: document UUID usage for root and all_generic_ide. 154 (closes: #489186) 155 * debian/initramfs-tools.preinst: try with different vol_id pathes. 156 157 -- maximilian attems <maks@debian.org> Sat, 05 Jul 2008 02:36:10 +0200 158 159 initramfs-tools (0.92c) unstable; urgency=low 160 161 [ maximilian attems ] 162 * doc: fix date string of manual pages. 163 * MODULES=most add mmc host and card drivers for OLPC. (closes: #483431) 164 * update-initramfs.conf.5: document backup_initramfs variable. 165 (closes: #475430) 166 * initramfs-tools.8: Document "break" and "panic" behaviour. 167 (closes: #481196) 168 * wait_for_udev(): simplify, no need for logging. 169 170 [ martin f. krafft ] 171 * Wait for udevsettle after -top scripts ran 172 * init: Remove extra ellipses 173 174 -- maximilian attems <maks@debian.org> Sat, 05 Jul 2008 00:31:06 +0200 175 176 initramfs-tools (0.92b) unstable; urgency=low 177 178 [ maximilian attems ] 179 * update-initramfs: mbr_check() fix for /dev/md/X naming. (closes: #469312) 180 Thanks to Axel Beckert <beckert@phys.ethz.ch> for report. 181 * hook-functions: MODULES=dep fix error message. 182 183 [ Glennie Vignarajah ] 184 * initramfs-tools: Fix UUID rootfs detection with 'MODULES=dep'. 185 (closes: #483082) 186 187 -- maximilian attems <maks@debian.org> Fri, 30 May 2008 16:31:42 +0200 7 188 8 189 initramfs-tools (0.92a) unstable; urgency=high -
pkg/boss/main/initramfs-tools/trunk/debian/control
r3697 r4805 5 5 Maintainer: Debian kernel team <debian-kernel@lists.debian.org> 6 6 Build-Depends: debhelper (>= 4.1.0), cdbs 7 Standards-Version: 3. 7.37 Standards-Version: 3.8.0 8 8 Vcs-Browser: http://git.debian.org/?p=kernel/initramfs-tools.git 9 9 Vcs-Git: git://git.debian.org/git/kernel/initramfs-tools.git -
pkg/boss/main/initramfs-tools/trunk/debian/initramfs-tools.postrm
r2179 r4805 1 1 #!/bin/sh 2 3 set -e 2 4 3 5 if [ "x${1}" = "xpurge" ]; then -
pkg/boss/main/initramfs-tools/trunk/debian/initramfs-tools.preinst
r2179 r4805 21 21 if [ -r /proc/swaps ]; then 22 22 RESUME=$(tail -n $(($(wc -l /proc/swaps | awk ' { print $1 } ') - 1)) /proc/swaps | sort -rk3 | head -n 1 | awk ' { print $1 } ') 23 if [ -x /sbin/vol_id ]; then 24 UUID=$(/sbin/vol_id -u "$RESUME" || true) 25 elif [ -x /lib/udev/vol_id ]; then 26 UUID=$(/lib/udev/vol_id -u "$RESUME" || true) 27 fi 28 if [ -n "$UUID" ]; then 29 RESUME="UUID=$UUID" 30 fi 23 31 fi 24 32 -
pkg/boss/main/initramfs-tools/trunk/hook-functions
r3697 r4805 190 190 191 191 while [ "${device_path}" != "/sys" ]; do 192 sys_walk_modalias ${device_path} 192 193 driver_path="$(readlink -f ${device_path}/driver)" 193 194 if [ -e "$driver_path" ]; then … … 223 224 224 225 # findout root block device + fstype 225 eval "$(mount | awk '/ \/ / {print "root=" $1 "\nFSTYPE=" $5; exit}')" 226 eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}')" 227 if [ "${root}" = "/dev/root" ] ; then 228 root="/dev/disk/by-uuid/"$(/lib/udev/vol_id --uuid ${root}) 2>/dev/null 229 fi 230 root="$(readlink -f ${root})" 226 231 227 232 # find out real rootfs on auto type … … 234 239 echo "mkinitramfs: unknown fstype on root ${root}" 235 240 echo "mkinitramfs: workaround is MODULES=most" 236 echo "mkinitramfs: Error please report bug against klibc"241 echo "mkinitramfs: Error please report bug on initramfs-tools" 237 242 exit 1 238 243 fi … … 241 246 manual_add_modules "${FSTYPE}" 242 247 243 # lvm luks root 244 if [ "${root#/dev/mapper/}" != "${root}" ]; then 248 # lvm or luks root 249 if [ "${root#/dev/mapper/}" != "${root}" ] \ 250 || [ "${root#/dev/dm-}" != "${root}" ]; then 245 251 minor=$((0x$(stat --format "%T" ${root}) % 256)) 246 252 block=$(ls -1 /sys/block/dm-${minor}/slaves | head -n 1) 253 # lvm on luks or luks on lvm 247 254 if [ "${block#dm-}" != "${block}" ]; then 248 255 block=$(ls -1 /sys/block/${block}/slaves | head -n 1) 256 fi 257 # lvm on md or luks on md 258 if [ "${block#md}" != "${block}" ]; then 259 block=$(awk "/^${block}/{print substr(\$5, 1, 4); exit}" \ 260 /proc/mdstat) 249 261 fi 250 262 block=${block%[0-9]*} … … 259 271 block=$(awk "/^${root}/{print substr(\$5, 1, 3); exit}" \ 260 272 /proc/mdstat) 273 # cciss device 274 elif [ "${root#/dev/cciss/}" != "${root}" ]; then 275 block=${root#/dev/cciss/*} 276 block="cciss!${block%p*}" 277 # ida device 278 elif [ "${root#/dev/ida/}" != "${root}" ]; then 279 block=${root#/dev/ida/*} 280 block="ida!${block%p*}" 281 # loop root /dev/loopX 282 elif [ "${root#/dev/loop}" != "${root}" ]; then 283 root=${root#/dev/} 284 block=$(losetup -a \ 285 | awk "/${root}/{print substr(\$3, 7, 3); exit}") 261 286 # classical root device 262 287 else … … 313 338 base) 314 339 for x in ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 \ 315 ext3 isofs jfs nfs reiserfs xfs af_packet atkbd i8042; do 340 ext3 ext4 ext4dev isofs jfs nfs reiserfs udf xfs af_packet \ 341 atkbd i8042 virtio_pci; do 316 342 manual_add_modules "${x}" 317 343 done 318 344 ;; 319 345 net) 320 for x in 3c59x 8139cp 8139too 8390 atl1 b44 bmac \ 321 bnx2 cxgb3 defxx dl2k e100 e1000 e1000e ehea epic100 \ 346 for x in 3c59x 8139cp 8139too 8390 atl1 atl1e b44 bmac \ 347 bnx2 cxgb cxgb3 de2104x de4x5 defxx dl2k dmfe \ 348 e100 e1000 e1000e ehea epic100 \ 322 349 ep93xx_eth eql fealnx famachi forcedeth gelic_net \ 323 hp100 igb ipg mace mv643xx_eth myri10ge \ 324 natsemi ne2k-pci netconsole niu ns83820 pcnet32 qla3xxx \ 325 r8169 s2io sis900 skge sky2 slhc smc911x starfire \ 326 sundance sungem sungem_phy sunhme sunvnet tg3 tlan de2104x \ 327 de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb \ 328 typhon via-rhine via-velocity yellowfin; do 350 hp100 igb ipg ixgb ixgbe mace mlx4_core mv643xx_eth myri10ge \ 351 natsemi ne2k-pci netconsole netxen_nic niu ns83820 \ 352 pcnet32 qla3xxx \ 353 r8169 s2io sfc sis900 skge sky2 slhc smc911x starfire \ 354 sundance sungem sungem_phy sunhme sunvnet tehuti tg3 tlan \ 355 tulip typhoon via-rhine via-velocity winbond-840 \ 356 xircom_cb xircom_tulip_cb yellowfin; do 329 357 manual_add_modules "${x}" 330 358 done … … 333 361 copy_modules_dir kernel/drivers/ide 334 362 ;; 363 mmc) 364 copy_modules_dir kernel/drivers/mmc 365 ;; 335 366 scsi) 336 367 copy_modules_dir kernel/drivers/scsi 337 for x in mptfc mptsas mptscsih mptspi ; do368 for x in mptfc mptsas mptscsih mptspi zfcp; do 338 369 manual_add_modules "${x}" 339 370 done … … 362 393 ;; 363 394 dasd) 364 for x in dasd_ eckd_mod dasd_fba_mod; do395 for x in dasd_diag_mod dasd_eckd_mod dasd_fba_mod; do 365 396 manual_add_modules "${x}" 366 397 done … … 377 408 auto_add_modules ieee1394 378 409 auto_add_modules firewire 410 auto_add_modules mmc 379 411 ;; 380 412 esac … … 385 417 cat >&2 << EOF 386 418 387 Usage: ${0} [OPTION]... <-o outfile>[version]419 Usage: ${0} [OPTION]... -o outfile [version] 388 420 389 421 Options: -
pkg/boss/main/initramfs-tools/trunk/hooks/udevhelper
r2683 r4805 31 31 32 32 cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/ 33 copy_exec /lib/udev/ide.agent /lib/udev/34 33 for program in /lib/udev/*_id; do 35 34 copy_exec $program /lib/udev/ -
pkg/boss/main/initramfs-tools/trunk/init
r3697 r4805 10 10 mkdir -p /var/lock 11 11 mount -t sysfs -o nodev,noexec,nosuid none /sys 12 mount -t proc -o nodev,noexec,nosuid none /proc 13 14 # Suspend2resume fix12 mount -t proc -o nodev,noexec,nosuid none /proc 13 14 # TuxOnIce resume fix 15 15 if [ -d /sys/power/suspend2/ ]; then 16 16 echo > /sys/power/suspend2/do_resume … … 134 134 debug=y 135 135 quiet=n 136 exec >/ tmp/initramfs.debug 2>&1136 exec >/dev/.initramfs/initramfs.debug 2>&1 137 137 set -x 138 138 ;; … … 167 167 168 168 maybe_break modules 169 log_begin_msg "Loading essential drivers ..."169 log_begin_msg "Loading essential drivers" 170 170 load_modules 171 171 log_end_msg … … 177 177 178 178 maybe_break mount 179 log_begin_msg "Mounting root file system ..."179 log_begin_msg "Mounting root file system" 180 180 . /scripts/${BOOT} 181 181 parse_numeric ${ROOT} 182 maybe_break mountroot 182 183 mountroot 183 184 log_end_msg … … 213 214 fi 214 215 215 # Confuses /etc/init.d/rc 216 if [ -n ${debug} ]; then 217 unset debug 218 fi 216 # don't leak too much of env - some init(8) don't clear it 217 # (keep init, rootmnt) 218 unset debug 219 unset MODPROBE_OPTIONS 220 unset DPKG_ARCH 221 unset ROOTFLAGS 222 unset ROOTFSTYPE 223 unset ROOTDELAY 224 unset ROOT 225 unset blacklist 226 unset break 227 unset noresume 228 unset panic 229 unset quiet 230 unset readonly 231 unset resume 232 unset resume_offset 219 233 220 234 # Chain to real filesystem -
pkg/boss/main/initramfs-tools/trunk/initramfs-tools.8
r3697 r4805 1 .TH INITRAMFS-TOOLS 8 " Date: 2007/07/07" "" "mkinitramfs script overview"1 .TH INITRAMFS-TOOLS 8 "2008/12/18" "" "mkinitramfs script overview" 2 2 3 3 .SH NAME … … 33 33 34 34 .TP 35 \fB \fI init35 \fB\fI init 36 36 the binary to hand over execution to on the root fs after the initramfs scripts are done. 37 37 38 38 .TP 39 \fB \fI root39 \fB\fI root 40 40 the device node to mount as the root file system. 41 42 .TP 43 \fB \fI rootdelay 41 The recommended usage is to specify the UUID as followed "root=UUID=xxx". 42 As normal device names are not stable and may change depending on the 43 boot order. 44 45 .TP 46 \fB\fI rootdelay 44 47 set delay in seconds. Determines how long mountroot waits for root to appear. 45 48 46 49 .TP 47 \fB \fI rootflags50 \fB\fI rootflags 48 51 set the file system mount option string. 49 52 50 53 .TP 51 \fB \fI rootfstype54 \fB\fI rootfstype 52 55 set the root file system type. 53 56 54 57 .TP 55 \fB \fI nfsroot58 \fB\fI nfsroot 56 59 can be either "auto" to try to get the relevant information from DHCP or a 57 60 string of the form NFSSERVER:NFSPATH or NFSSERVER:NFSPATH:NFSOPTS. 58 Use root=/dev/nfs for NFS to kick to in. 59 60 .TP 61 \fB \fI ip 61 Use root=/dev/nfs for NFS to kick to in. NFSOPTS can be looked up in 62 \fInfs(5)\fP. 63 64 .TP 65 \fB\fI ip 62 66 tells how to configure the ip address. Allows to specify an different 63 67 NFS server than the DHCP server. See Documentation/nfsroot.txt in … … 65 69 66 70 .TP 67 \fB \fI cryptopts71 \fB\fI cryptopts 68 72 passes the args for cryptoroot. Set by the cryptsetup boot hooks. 69 73 70 74 .TP 71 \fB \fI boot75 \fB\fI boot 72 76 either local or NFS (affects which initramfs scripts are run, see the "Subdirectories" section under boot scripts). 73 77 74 78 .TP 75 \fB \fI resume79 \fB\fI resume 76 80 On install initramfs-tools tries to autodetect the resume partition. On success 77 81 the RESUME variable is written to /etc/initramfs-tools/conf.d/resume. … … 79 83 80 84 .TP 81 \fB \fI resume_offset85 \fB\fI resume_offset 82 86 Specify the offset from the partition given by "resume=" at which the swap 83 87 header of the swap file is located. 84 88 85 89 .TP 86 \fB \fI quiet90 \fB\fI quiet 87 91 reduces the amount of text output to the console during boot. 88 92 89 93 .TP 90 \fB \fI ro94 \fB\fI ro 91 95 mounts the rootfs read-only. 92 96 93 97 .TP 94 \fB \fI rw98 \fB\fI rw 95 99 mounts the rootfs read-write. 96 100 97 101 .TP 98 \fB \fI blacklist102 \fB\fI blacklist 99 103 disables load of specific modules. 100 104 Use blacklist=module1,module2,module3 bootparameter. 101 105 102 106 .TP 103 \fB \fI panic107 \fB\fI panic 104 108 sets an timeout on panic. 105 panic= 0is a documented security feature: it disables the debug shell.106 107 .TP 108 \fB \fI debug109 panic=<sec> is a documented security feature: it disables the debug shell. 110 111 .TP 112 \fB\fI debug 109 113 generates lots of output. It writes a log to /tmp/initramfs.debug. 110 114 Instead when invoked with an arbitrary argument output is written to console. … … 112 116 113 117 .TP 114 \fB \fI break118 \fB\fI break 115 119 spawns a shell in the initramfs image at chosen run-time 116 (top, modules, premount, mount, bottom, init).120 (top, modules, premount, mount, mountroot, bottom, init). 117 121 The default is premount without any arg. 122 Beware that if both "panic" and "break" are present, 123 initramfs will not spawn any shells but reboot instead. 124 125 .TP 126 \fB\fI all_generic_ide 127 loads generic IDE/ATA chipset support on boot. 118 128 119 129 … … 145 155 esac 146 156 147 . /usr/share/initramfs-tools/hook-functions157 \fR. /usr/share/initramfs-tools/hook-functions 148 158 # Begin real processing below this line 149 159 .fi … … 158 168 deal with some common tasks in a hook script: 159 169 .TP 160 \fB \fI170 \fB\fI 161 171 manual_add_modules 162 172 adds a module (and any modules which it depends on) to the initramfs image. … … 168 178 169 179 .TP 170 \fB \fI180 \fB\fI 171 181 add_modules_from_file 172 182 reads a file containing a list of modules (one per line) to be added to the … … 181 191 182 192 .TP 183 \fB \fI193 \fB\fI 184 194 force_load 185 195 adds a module (and its dependencies) to the initramfs image and also … … 193 203 194 204 .TP 195 \fB \fI205 \fB\fI 196 206 copy_modules_dir 197 207 copies an entire module directory from /lib/modules/KERNELVERSION/ into the … … 254 264 255 265 .TP 256 \fB \fI266 \fB\fI 257 267 log_success_msg 258 268 Logs a success message … … 264 274 265 275 .TP 266 \fB \fI276 \fB\fI 267 277 log_failure_msg 268 278 Logs a failure message … … 274 284 275 285 .TP 276 \fB \fI286 \fB\fI 277 287 log_warning_msg 278 288 Logs a warning message … … 284 294 285 295 .TP 286 \fB \fI296 \fB\fI 287 297 log_begin_msg 288 298 Logs a message that some processing step has begun 289 299 290 300 .TP 291 \fB \fI301 \fB\fI 292 302 log_end_msg 293 303 Logs a message that some processing step is finished … … 306 316 307 317 .TP 308 \fB \fI318 \fB\fI 309 319 panic 310 320 Logs an error message and executes a shell in the initramfs image to allow the … … 321 331 322 332 .TP 323 \fB \fI333 \fB\fI 324 334 init-top 325 335 the scripts in this directory are the first scripts to be executed after sysfs … … 328 338 329 339 .TP 330 \fB \fI340 \fB\fI 331 341 init-premount 332 342 runs the udev hooks for populating the /dev tree (udev will keep running until … … 335 345 336 346 .TP 337 \fB \fI347 \fB\fI 338 348 local-top OR nfs-top 339 349 After these scripts have been executed, the root device node is expected to be … … 341 351 342 352 .TP 343 \fB \fI353 \fB\fI 344 354 local-premount OR nfs-premount 345 355 are run after the sanity of the root device has been verified (local) or the … … 348 358 349 359 .TP 350 \fB \fI360 \fB\fI 351 361 local-bottom OR nfs-bottom 352 362 are run after the rootfs has been mounted (local) or the NFS root share has … … 354 364 355 365 .TP 356 \fB \fI366 \fB\fI 357 367 init-bottom 358 368 are the last scripts to be executed before procfs and sysfs are moved to the … … 362 372 .SS Boot parameters 363 373 .TP 364 \fB \fI374 \fB\fI 365 375 /conf/param.conf 366 376 allows boot scripts to change exported variables that are listed on top of init. Write the new values to it. It will be sourced after an boot script run if it exists. … … 391 401 esac 392 402 393 . /usr/share/initramfs-tools/hook-functions403 \fR. /usr/share/initramfs-tools/hook-functions 394 404 # Begin real processing below this line 395 405 -
pkg/boss/main/initramfs-tools/trunk/initramfs.conf.5
r3697 r4805 1 .TH INITRAMFS.CONF 5 " $Date: 2007/01/01 $" "" "initramfs.conf manual"1 .TH INITRAMFS.CONF 5 "2007/01/01" "" "initramfs.conf manual" 2 2 3 3 .SH NAME -
pkg/boss/main/initramfs-tools/trunk/mkinitramfs
r3697 r4805 259 259 # those root need busybox 260 260 eval "$(mount | awk '/ \/ / {print "r_dev=" $1; exit}')" 261 if [ "${r_dev#/dev/mapper/}" != "${r_dev}" ] \ 262 || [ "${r_dev#/dev/md}" != "${r_dev}" ]; then 261 if [ "${r_dev#/dev/mapper/}" != "${r_dev}" ]; then 263 262 echo "Warning: Busybox is required for successful boot!" 264 263 fi -
pkg/boss/main/initramfs-tools/trunk/mkinitramfs-kpkg.8
r2179 r4805 1 .TH MKINITRAMFS-KPKG 8 " $Date: 2006/02/17 $" "" "mkinitramfs-kpkg manual"1 .TH MKINITRAMFS-KPKG 8 "2006/02/17" "" "mkinitramfs-kpkg manual" 2 2 3 3 .SH NAME -
pkg/boss/main/initramfs-tools/trunk/mkinitramfs.8
r2179 r4805 1 .TH MKINITRAMFS 8 " $Date: 2007/08/08 $" "" "mkinitramfs manual"1 .TH MKINITRAMFS 8 "2008/08/12" "" "mkinitramfs manual" 2 2 3 3 .SH NAME … … 9 9 .IR confdir ] 10 10 .RB [ \-k ] 11 .RB [\-o12 .IR outfile ]11 .RB \-o 12 .IR outfile 13 13 .RB [ \-r 14 14 .IR root ] -
pkg/boss/main/initramfs-tools/trunk/scripts/functions
r3697 r4805 4 4 { 5 5 if [ "$quiet" = "y" ]; then return; fi 6 echo"$@"6 printf "$@" 7 7 } 8 8 9 9 log_success_msg() 10 10 { 11 _log_msg "Success: $@ "11 _log_msg "Success: $@\n" 12 12 } 13 13 14 14 log_failure_msg() 15 15 { 16 _log_msg "Failure: $@ "16 _log_msg "Failure: $@\n" 17 17 } 18 18 19 19 log_warning_msg() 20 20 { 21 _log_msg "Warning: $@ "21 _log_msg "Warning: $@\n" 22 22 } 23 23 … … 27 27 /sbin/usplash_write "TEXT $@" 28 28 fi 29 _log_msg "Begin: $@ ... "29 _log_msg "Begin: $@ ... " 30 30 } 31 31 … … 35 35 /sbin/usplash_write "SUCCESS ok" 36 36 fi 37 _log_msg "Done." 38 update_progress 39 } 40 41 update_progress() 42 { 43 [ -d /dev/.initramfs ] || return 44 45 if [ -z "$PROGRESS_STATE" ]; then 46 export PROGRESS_STATE=0 47 fi 48 49 PROGRESS_STATE=$(($PROGRESS_STATE + 1)) 50 echo "PROGRESS_STATE=${PROGRESS_STATE}" > /dev/.initramfs/progress_state 51 52 if [ -x /sbin/usplash_write ]; then 53 /sbin/usplash_write "PROGRESS $PROGRESS_STATE" 54 fi 37 _log_msg "done.\n" 55 38 } 56 39 … … 73 56 maybe_break() 74 57 { 75 if [ "${break }" = "$1" ]; then58 if [ "${break:-}" = "$1" ]; then 76 59 panic "Spawning shell within the initramfs" 77 60 fi … … 256 239 return 257 240 ;; 258 *:*)241 [0-9]*:[0-9]*) 259 242 minor=${1#*:} 260 243 major=${1%:*} 261 244 ;; 262 *)245 [A-Fa-f0-9]*) 263 246 value=$(( 0x${1} )) 264 247 minor=$(( ${value} % 256 )) 265 248 major=$(( ${value} / 256 )) 266 249 ;; 250 *) 251 return 252 ;; 267 253 esac 268 254 … … 276 262 [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0 277 263 278 # support ip options see linux sources Documentation/nfsroot.txt 264 # support ip options see linux sources 265 # Documentation/filesystems/nfsroot.txt 279 266 case ${IPOPTS} in 280 267 none|off) … … 283 270 ""|on|any) 284 271 # Bring up device 285 ipconfig ${DEVICE}272 ipconfig -t 60 ${DEVICE} 286 273 ;; 287 274 dhcp|bootp|rarp|both) 288 ipconfig - c ${IPOPTS} -d ${DEVICE}275 ipconfig -t 60 -c ${IPOPTS} -d ${DEVICE} 289 276 ;; 290 277 *) 291 ipconfig - d $IPOPTS278 ipconfig -t 60 -d $IPOPTS 292 279 293 280 # grab device entry from ip option … … 314 301 fi 315 302 } 303 304 # Wait for queued kernel/udev events 305 wait_for_udev() 306 { 307 [ -x "$(command -v udevadm)" ] || return 0 308 udevadm settle ${1:+--timeout=$1} 309 } -
pkg/boss/main/initramfs-tools/trunk/scripts/init-top/framebuffer
r3697 r4805 73 73 done 74 74 75 # Map command line name to module name 75 # Map command line name to module name and other tweaks 76 76 case ${FB} in 77 77 matroxfb) 78 78 FB=matroxfb_base 79 ;; 80 uvesafb) 81 # v86d requires /dev/zero and dev/mem, but udev haven't been started yet 82 [ -e /dev/zero ] || mknod -m 0666 /dev/zero c 1 5 83 [ -e /dev/mem ] || mknod -m 0640 /dev/mem c 1 1 79 84 ;; 80 85 *) … … 86 91 modprobe ${FB} ${OPTS} 87 92 fi 93 94 if [ -e /proc/fb ]; then 95 while read fbno desc; do 96 if [ $(($fbno < 32)) ]; then 97 mknod -m 0640 /dev/fb${fbno} c 29 ${fbno} 98 fi 99 done < /proc/fb 100 else 101 mknod -m 0640 /dev/fb0 c 29 0 102 fi -
pkg/boss/main/initramfs-tools/trunk/scripts/local
r2683 r4805 32 32 [ "$quiet" != "y" ] && log_end_msg 33 33 34 wait_for_udev 10 35 34 36 # If the root device hasn't shown up yet, give it a little while 35 37 # to deal with removable devices 36 38 if [ ! -e "${ROOT}" ] || ! $(get_fstype "${ROOT}" >/dev/null); then 37 log_begin_msg "Waiting for root file system ..."39 log_begin_msg "Waiting for root file system" 38 40 39 41 # Default delay is 180s … … 86 88 ;; 87 89 esac 88 echo "ALERT! ${ROOT} does not exist. Dropping to a shell!" 89 echo " Check your root= boot argument (cat /proc/cmdline)" 90 panic " Check for missing modules (cat /proc/modules), or device files (ls /dev)" 90 echo "Gave up waiting for root device. Common problems:" 91 echo " - Boot args (cat /proc/cmdline)" 92 echo " - Check rootdelay= (did the system wait long enough?)" 93 echo " - Check root= (did the system wait for the right device?)" 94 echo " - Missing modules (cat /proc/modules; ls /dev)" 95 panic "ALERT! ${ROOT} does not exist. Dropping to a shell!" 91 96 done 92 97 -
pkg/boss/main/initramfs-tools/trunk/scripts/nfs
r2683 r4805 60 60 modprobe af_packet 61 61 62 wait_for_udev 10 63 62 64 # Default delay is around 180s 63 65 # FIXME: add usplash_write info -
pkg/boss/main/initramfs-tools/trunk/update-initramfs
r3697 r4805 202 202 [ -z "${boot}" ] && return 0 203 203 case ${boot} in 204 /dev/md/*) 205 if [ -r /proc/mdstat ]; then 206 MD=${boot#/dev/md/} 207 boot="/dev/$(awk "/^md${MD}/{print substr(\$5, 1, 3)}" \ 208 /proc/mdstat)" 209 fi 210 ;; 204 211 /dev/md*) 205 212 if [ -r /proc/mdstat ]; then … … 256 263 zipl 257 264 fi 265 if flash-kernel --supported >/dev/null 2>&1; then 266 flash-kernel 267 fi 258 268 } 259 269 -
pkg/boss/main/initramfs-tools/trunk/update-initramfs.8
r3697 r4805 1 .TH UPDATE-INITRAMFS 8 " $Date: 2006/10/12" $" "" "update\-initramfs manual"1 .TH UPDATE-INITRAMFS 8 "2008/12/19" "" "update\-initramfs manual" 2 2 3 3 .SH NAME … … 6 6 .SH SYNOPSIS 7 7 .B update\-initramfs 8 .RB \-c | \-d | \-u 8 9 .RB [ \-k 9 10 .IR version ] 10 .RB [ \-c ]11 .RB [ \-u ]12 11 .RB [ \-t ] 13 12 .RB [ \-v ] -
pkg/boss/main/initramfs-tools/trunk/update-initramfs.conf.5
r3697 r4805 1 .TH UPDATE-INITRAMFS.CONF 5 " $Date: 2007/08/09 $" "" "update-initramfs.conf manual"1 .TH UPDATE-INITRAMFS.CONF 5 "2008/07/03" "" "update-initramfs.conf manual" 2 2 3 3 .SH NAME … … 17 17 conservative manners needs to be applied. This disables 18 18 the \fBupdate_initramfs \-u\fP call. 19 .TP 20 \fB backup_initramfs 21 By default \fBupdate_initramfs\fP keeps an .bak file of the previous initramfs. If set to \fIno\fP the backup initramfs will not be kept. 19 22 20 23 .SH AUTHOR
Note: See TracChangeset
for help on using the changeset viewer.


