Changeset 4805


Ignore:
Timestamp:
12/28/08 21:14:40 (6 years ago)
Author:
alanbach-guest
Message:
  • Sync'd with Debian 0.92n
    • Readded TuxOnIce? fixes
    • Load RTC modules into initramfs
Location:
pkg/boss/main/initramfs-tools/trunk
Files:
4 added
21 edited

Legend:

Unmodified
Added
Removed
  • pkg/boss/main/initramfs-tools/trunk/conf/initramfs.conf

    r2179 r4805  
    33# Configuration file for mkinitramfs(8). See initramfs.conf(5). 
    44# 
     5# Note that configuration options from this file can be overriden 
     6# by config files in the /etc/initramfs-tools/conf.d directory. 
    57 
    68# 
  • pkg/boss/main/initramfs-tools/trunk/conf/modules

    r2179 r4805  
    99# raid1 
    1010# sd_mod 
     11 
     12rtc_cmos 
     13rtc_core 
     14rtc_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 
     1initramfs-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 
     9initramfs-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 
     26initramfs-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 
     61initramfs-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 
     68initramfs-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 
     80initramfs-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 
     97initramfs-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 
     104initramfs-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 
     116initramfs-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 
     136initramfs-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 
     142initramfs-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 
     159initramfs-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 
     176initramfs-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 
    7188 
    8189initramfs-tools (0.92a) unstable; urgency=high 
  • pkg/boss/main/initramfs-tools/trunk/debian/control

    r3697 r4805  
    55Maintainer: Debian kernel team <debian-kernel@lists.debian.org> 
    66Build-Depends: debhelper (>= 4.1.0), cdbs 
    7 Standards-Version: 3.7.3 
     7Standards-Version: 3.8.0 
    88Vcs-Browser: http://git.debian.org/?p=kernel/initramfs-tools.git 
    99Vcs-Git: git://git.debian.org/git/kernel/initramfs-tools.git 
  • pkg/boss/main/initramfs-tools/trunk/debian/initramfs-tools.postrm

    r2179 r4805  
    11#!/bin/sh 
     2 
     3set -e 
    24 
    35if [ "x${1}" = "xpurge" ]; then 
  • pkg/boss/main/initramfs-tools/trunk/debian/initramfs-tools.preinst

    r2179 r4805  
    2121                if [ -r /proc/swaps ]; then 
    2222                        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 
    2331                fi 
    2432 
  • pkg/boss/main/initramfs-tools/trunk/hook-functions

    r3697 r4805  
    190190         
    191191        while [ "${device_path}" != "/sys" ]; do 
     192                sys_walk_modalias ${device_path} 
    192193                driver_path="$(readlink -f ${device_path}/driver)" 
    193194                if [ -e "$driver_path" ]; then 
     
    223224 
    224225        # 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})" 
    226231 
    227232        # find out real rootfs on auto type 
     
    234239                echo "mkinitramfs: unknown fstype on root ${root}" 
    235240                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"  
    237242                exit 1 
    238243        fi 
     
    241246        manual_add_modules "${FSTYPE}" 
    242247 
    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 
    245251                minor=$((0x$(stat --format "%T" ${root}) % 256)) 
    246252                block=$(ls -1 /sys/block/dm-${minor}/slaves | head -n 1) 
     253                # lvm on luks or luks on lvm 
    247254                if [ "${block#dm-}" != "${block}" ]; then 
    248255                        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) 
    249261                fi 
    250262                block=${block%[0-9]*} 
     
    259271                block=$(awk "/^${root}/{print substr(\$5, 1, 3); exit}" \ 
    260272                        /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}") 
    261286        # classical root device 
    262287        else 
     
    313338        base) 
    314339                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 
    316342                        manual_add_modules "${x}" 
    317343                done 
    318344        ;; 
    319345        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 \ 
    322349                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 
    329357                        manual_add_modules "${x}" 
    330358                done 
     
    333361                copy_modules_dir kernel/drivers/ide 
    334362        ;; 
     363        mmc) 
     364                copy_modules_dir kernel/drivers/mmc 
     365        ;; 
    335366        scsi) 
    336367                copy_modules_dir kernel/drivers/scsi 
    337                 for x in mptfc mptsas mptscsih mptspi; do 
     368                for x in mptfc mptsas mptscsih mptspi zfcp; do 
    338369                        manual_add_modules "${x}" 
    339370                done 
     
    362393        ;; 
    363394        dasd) 
    364                 for x in dasd_eckd_mod dasd_fba_mod; do 
     395                for x in dasd_diag_mod dasd_eckd_mod dasd_fba_mod; do 
    365396                        manual_add_modules "${x}" 
    366397                done 
     
    377408                auto_add_modules ieee1394 
    378409                auto_add_modules firewire 
     410                auto_add_modules mmc 
    379411        ;; 
    380412        esac 
     
    385417        cat >&2 << EOF 
    386418 
    387 Usage: ${0} [OPTION]... <-o outfile> [version] 
     419Usage: ${0} [OPTION]... -o outfile [version] 
    388420 
    389421Options: 
  • pkg/boss/main/initramfs-tools/trunk/hooks/udevhelper

    r2683 r4805  
    3131 
    3232cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/ 
    33 copy_exec /lib/udev/ide.agent /lib/udev/ 
    3433for program in /lib/udev/*_id; do 
    3534        copy_exec $program /lib/udev/ 
  • pkg/boss/main/initramfs-tools/trunk/init

    r3697 r4805  
    1010mkdir -p /var/lock 
    1111mount -t sysfs -o nodev,noexec,nosuid none /sys  
    12 mount -t proc -o nodev,noexec,nosuid none /proc  
    13  
    14 # Suspend2 resume fix 
     12mount -t proc -o nodev,noexec,nosuid none /proc 
     13 
     14# TuxOnIce resume fix 
    1515if [ -d /sys/power/suspend2/ ]; then 
    1616   echo > /sys/power/suspend2/do_resume 
     
    134134                debug=y 
    135135                quiet=n 
    136                 exec >/tmp/initramfs.debug 2>&1 
     136                exec >/dev/.initramfs/initramfs.debug 2>&1 
    137137                set -x 
    138138                ;; 
     
    167167 
    168168maybe_break modules 
    169 log_begin_msg "Loading essential drivers..." 
     169log_begin_msg "Loading essential drivers" 
    170170load_modules 
    171171log_end_msg 
     
    177177 
    178178maybe_break mount 
    179 log_begin_msg "Mounting root file system..." 
     179log_begin_msg "Mounting root file system" 
    180180. /scripts/${BOOT} 
    181181parse_numeric ${ROOT} 
     182maybe_break mountroot 
    182183mountroot 
    183184log_end_msg 
     
    213214fi 
    214215 
    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) 
     218unset debug 
     219unset MODPROBE_OPTIONS 
     220unset DPKG_ARCH 
     221unset ROOTFLAGS 
     222unset ROOTFSTYPE 
     223unset ROOTDELAY 
     224unset ROOT 
     225unset blacklist 
     226unset break 
     227unset noresume 
     228unset panic 
     229unset quiet 
     230unset readonly 
     231unset resume 
     232unset resume_offset 
    219233 
    220234# 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" 
    22 
    33.SH NAME 
     
    3333 
    3434.TP 
    35 \fB \fI init 
     35\fB\fI init 
    3636the binary to hand over execution to on the root fs after the initramfs scripts are done. 
    3737 
    3838.TP 
    39 \fB \fI root 
     39\fB\fI root 
    4040the device node to mount as the root file system. 
    41  
    42 .TP 
    43 \fB \fI rootdelay 
     41The recommended usage is to specify the UUID as followed "root=UUID=xxx". 
     42As normal device names are not stable and may change depending on the 
     43boot order. 
     44 
     45.TP 
     46\fB\fI rootdelay 
    4447set delay in seconds. Determines how long mountroot waits for root to appear. 
    4548 
    4649.TP 
    47 \fB \fI rootflags 
     50\fB\fI rootflags 
    4851set the file system mount option string. 
    4952 
    5053.TP 
    51 \fB \fI rootfstype 
     54\fB\fI rootfstype 
    5255set the root file system type. 
    5356 
    5457.TP 
    55 \fB \fI nfsroot 
     58\fB\fI nfsroot 
    5659can be either "auto" to try to get the relevant information from DHCP or a 
    5760string 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 
     61Use 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 
    6266tells how to configure the ip address. Allows to specify an different 
    6367NFS server than the DHCP server. See Documentation/nfsroot.txt in 
     
    6569 
    6670.TP 
    67 \fB \fI cryptopts 
     71\fB\fI cryptopts 
    6872passes the args for cryptoroot. Set by the cryptsetup boot hooks. 
    6973 
    7074.TP 
    71 \fB \fI boot 
     75\fB\fI boot 
    7276either local or NFS (affects which initramfs scripts are run, see the "Subdirectories" section under boot scripts). 
    7377 
    7478.TP 
    75 \fB \fI resume 
     79\fB\fI resume 
    7680On install initramfs-tools tries to autodetect the resume partition. On success 
    7781the RESUME variable is written to /etc/initramfs-tools/conf.d/resume. 
     
    7983 
    8084.TP 
    81 \fB \fI resume_offset 
     85\fB\fI resume_offset 
    8286Specify the offset from the partition given by "resume=" at which the swap 
    8387header of the swap file is located. 
    8488 
    8589.TP 
    86 \fB \fI quiet 
     90\fB\fI quiet 
    8791reduces the amount of text output to the console during boot. 
    8892 
    8993.TP 
    90 \fB \fI ro 
     94\fB\fI ro 
    9195mounts the rootfs read-only. 
    9296 
    9397.TP 
    94 \fB \fI rw 
     98\fB\fI rw 
    9599mounts the rootfs read-write. 
    96100 
    97101.TP 
    98 \fB \fI blacklist 
     102\fB\fI blacklist 
    99103disables load of specific modules. 
    100104Use blacklist=module1,module2,module3 bootparameter. 
    101105 
    102106.TP 
    103 \fB \fI panic 
     107\fB\fI panic 
    104108sets an timeout on panic. 
    105 panic=0 is a documented security feature: it disables the debug shell. 
    106  
    107 .TP 
    108 \fB \fI debug 
     109panic=<sec> is a documented security feature: it disables the debug shell. 
     110 
     111.TP 
     112\fB\fI debug 
    109113generates lots of output. It writes a log to /tmp/initramfs.debug. 
    110114Instead when invoked with an arbitrary argument output is written to console. 
     
    112116 
    113117.TP 
    114 \fB \fI break 
     118\fB\fI break 
    115119spawns 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). 
    117121The default is premount without any arg. 
     122Beware that if both "panic" and "break" are present, 
     123initramfs will not spawn any shells but reboot instead. 
     124 
     125.TP 
     126\fB\fI all_generic_ide 
     127loads generic IDE/ATA chipset support on boot. 
    118128 
    119129 
     
    145155esac 
    146156 
    147 . /usr/share/initramfs-tools/hook-functions 
     157\fR. /usr/share/initramfs-tools/hook-functions 
    148158# Begin real processing below this line 
    149159.fi 
     
    158168deal with some common tasks in a hook script: 
    159169.TP 
    160 \fB \fI 
     170\fB\fI 
    161171manual_add_modules 
    162172adds a module (and any modules which it depends on) to the initramfs image. 
     
    168178 
    169179.TP 
    170 \fB \fI 
     180\fB\fI 
    171181add_modules_from_file 
    172182reads a file containing a list of modules (one per line) to be added to the 
     
    181191 
    182192.TP 
    183 \fB \fI 
     193\fB\fI 
    184194force_load 
    185195adds a module (and its dependencies) to the initramfs image and also 
     
    193203 
    194204.TP 
    195 \fB \fI 
     205\fB\fI 
    196206copy_modules_dir 
    197207copies an entire module directory from /lib/modules/KERNELVERSION/ into the 
     
    254264 
    255265.TP 
    256 \fB \fI 
     266\fB\fI 
    257267log_success_msg 
    258268Logs a success message 
     
    264274 
    265275.TP 
    266 \fB \fI 
     276\fB\fI 
    267277log_failure_msg 
    268278Logs a failure message 
     
    274284 
    275285.TP 
    276 \fB \fI 
     286\fB\fI 
    277287log_warning_msg 
    278288Logs a warning message 
     
    284294 
    285295.TP 
    286 \fB \fI 
     296\fB\fI 
    287297log_begin_msg 
    288298Logs a message that some processing step has begun 
    289299 
    290300.TP 
    291 \fB \fI 
     301\fB\fI 
    292302log_end_msg 
    293303Logs a message that some processing step is finished 
     
    306316 
    307317.TP 
    308 \fB \fI 
     318\fB\fI 
    309319panic 
    310320Logs an error message and executes a shell in the initramfs image to allow the 
     
    321331 
    322332.TP 
    323 \fB \fI 
     333\fB\fI 
    324334init-top 
    325335the scripts in this directory are the first scripts to be executed after sysfs 
     
    328338 
    329339.TP 
    330 \fB \fI 
     340\fB\fI 
    331341init-premount 
    332342runs the udev hooks for populating the /dev tree (udev will keep running until 
     
    335345 
    336346.TP 
    337 \fB \fI 
     347\fB\fI 
    338348local-top OR nfs-top 
    339349After these scripts have been executed, the root device node is expected to be 
     
    341351 
    342352.TP 
    343 \fB \fI 
     353\fB\fI 
    344354local-premount OR nfs-premount 
    345355are run after the sanity of the root device has been verified (local) or the 
     
    348358 
    349359.TP 
    350 \fB \fI 
     360\fB\fI 
    351361local-bottom OR nfs-bottom 
    352362are run after the rootfs has been mounted (local) or the NFS root share has 
     
    354364 
    355365.TP 
    356 \fB \fI 
     366\fB\fI 
    357367init-bottom 
    358368are the last scripts to be executed before procfs and sysfs are moved to the 
     
    362372.SS Boot parameters 
    363373.TP 
    364 \fB \fI 
     374\fB\fI 
    365375/conf/param.conf 
    366376allows 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. 
     
    391401esac 
    392402 
    393 . /usr/share/initramfs-tools/hook-functions 
     403\fR. /usr/share/initramfs-tools/hook-functions 
    394404# Begin real processing below this line 
    395405 
  • 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" 
    22 
    33.SH NAME 
  • pkg/boss/main/initramfs-tools/trunk/mkinitramfs

    r3697 r4805  
    259259        # those root need busybox 
    260260        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 
    263262                echo "Warning: Busybox is required for successful boot!" 
    264263        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" 
    22 
    33.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" 
    22 
    33.SH NAME 
     
    99.IR confdir ] 
    1010.RB [ \-k ] 
    11 .RB [ \-o 
    12 .IR outfile ] 
     11.RB \-o 
     12.IR outfile 
    1313.RB [ \-r 
    1414.IR root ] 
  • pkg/boss/main/initramfs-tools/trunk/scripts/functions

    r3697 r4805  
    44{ 
    55        if [ "$quiet" = "y" ]; then return; fi 
    6         echo "$@" 
     6        printf "$@" 
    77} 
    88 
    99log_success_msg() 
    1010{ 
    11         _log_msg "Success: $@" 
     11        _log_msg "Success: $@\n" 
    1212} 
    1313 
    1414log_failure_msg() 
    1515{ 
    16         _log_msg "Failure: $@" 
     16        _log_msg "Failure: $@\n" 
    1717} 
    1818 
    1919log_warning_msg() 
    2020{ 
    21         _log_msg "Warning: $@" 
     21        _log_msg "Warning: $@\n" 
    2222} 
    2323 
     
    2727                /sbin/usplash_write "TEXT $@" 
    2828        fi 
    29         _log_msg "Begin: $@ ..." 
     29        _log_msg "Begin: $@ ... " 
    3030} 
    3131 
     
    3535                /sbin/usplash_write "SUCCESS ok" 
    3636        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" 
    5538} 
    5639 
     
    7356maybe_break() 
    7457{ 
    75         if [ "${break}" = "$1" ]; then 
     58        if [ "${break:-}" = "$1" ]; then 
    7659                panic "Spawning shell within the initramfs" 
    7760        fi 
     
    256239                return 
    257240                ;; 
    258         *:*) 
     241        [0-9]*:[0-9]*) 
    259242                minor=${1#*:} 
    260243                major=${1%:*} 
    261244                ;; 
    262         *) 
     245        [A-Fa-f0-9]*) 
    263246                value=$(( 0x${1} )) 
    264247                minor=$(( ${value} % 256 )) 
    265248                major=$(( ${value} / 256 )) 
    266249                ;; 
     250        *) 
     251                return 
     252                ;; 
    267253        esac 
    268254 
     
    276262        [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0 
    277263 
    278         # support ip options see linux sources Documentation/nfsroot.txt 
     264        # support ip options see linux sources 
     265        # Documentation/filesystems/nfsroot.txt 
    279266        case ${IPOPTS} in 
    280267        none|off) 
     
    283270        ""|on|any) 
    284271                # Bring up device 
    285                 ipconfig ${DEVICE} 
     272                ipconfig -t 60 ${DEVICE} 
    286273                ;; 
    287274        dhcp|bootp|rarp|both) 
    288                 ipconfig -c ${IPOPTS} -d ${DEVICE} 
     275                ipconfig -t 60 -c ${IPOPTS} -d ${DEVICE} 
    289276                ;; 
    290277        *) 
    291                 ipconfig -d $IPOPTS 
     278                ipconfig -t 60 -d $IPOPTS 
    292279 
    293280                # grab device entry from ip option 
     
    314301        fi 
    315302} 
     303 
     304# Wait for queued kernel/udev events 
     305wait_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  
    7373done 
    7474 
    75 # Map command line name to module name 
     75# Map command line name to module name and other tweaks 
    7676case ${FB} in 
    7777matroxfb) 
    7878        FB=matroxfb_base 
     79        ;; 
     80uvesafb) 
     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 
    7984        ;; 
    8085*) 
     
    8691        modprobe ${FB} ${OPTS} 
    8792fi 
     93 
     94if [ -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 
     100else 
     101        mknod -m 0640 /dev/fb0 c 29 0 
     102fi 
  • pkg/boss/main/initramfs-tools/trunk/scripts/local

    r2683 r4805  
    3232        [ "$quiet" != "y" ] && log_end_msg 
    3333 
     34        wait_for_udev 10 
     35 
    3436        # If the root device hasn't shown up yet, give it a little while 
    3537        # to deal with removable devices 
    3638        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" 
    3840 
    3941                # Default delay is 180s 
     
    8688                        ;; 
    8789                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!" 
    9196        done 
    9297 
  • pkg/boss/main/initramfs-tools/trunk/scripts/nfs

    r2683 r4805  
    6060        modprobe af_packet 
    6161 
     62        wait_for_udev 10 
     63 
    6264        # Default delay is around 180s 
    6365        # FIXME: add usplash_write info 
  • pkg/boss/main/initramfs-tools/trunk/update-initramfs

    r3697 r4805  
    202202        [ -z "${boot}" ] && return 0 
    203203        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                ;; 
    204211        /dev/md*) 
    205212                if [ -r /proc/mdstat ]; then 
     
    256263                zipl 
    257264        fi 
     265        if flash-kernel --supported >/dev/null 2>&1; then 
     266                flash-kernel 
     267        fi 
    258268} 
    259269 
  • 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" 
    22 
    33.SH NAME 
     
    66.SH SYNOPSIS 
    77.B update\-initramfs 
     8.RB  \-c | \-d | \-u 
    89.RB [ \-k 
    910.IR version ] 
    10 .RB [ \-c ] 
    11 .RB [ \-u ] 
    1211.RB [ \-t ] 
    1312.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" 
    22 
    33.SH NAME 
     
    1717conservative manners needs to be applied. This disables 
    1818the \fBupdate_initramfs \-u\fP call. 
     19.TP 
     20\fB backup_initramfs 
     21By default \fBupdate_initramfs\fP keeps an .bak file of the previous initramfs. If set to \fIno\fP the backup initramfs will not be kept. 
    1922 
    2023.SH AUTHOR 
Note: See TracChangeset for help on using the changeset viewer.