Changeset 905 for pkg/main/initramfs-tools
- Timestamp:
- 04/15/07 07:54:17 (6 years ago)
- Location:
- pkg/main/initramfs-tools/trunk
- Files:
-
- 18 edited
-
debian/changelog (modified) (3 diffs)
-
debian/control (modified) (2 diffs)
-
debian/copyright (modified) (2 diffs)
-
debian/initramfs-tools.preinst (modified) (2 diffs)
-
debian/script (modified) (1 diff)
-
hook-functions (modified) (3 diffs)
-
init (modified) (2 diffs)
-
initramfs-tools.8 (modified) (3 diffs)
-
mkinitramfs (modified) (2 diffs)
-
scripts/functions (modified) (5 diffs)
-
scripts/init-premount/thermal (modified) (1 diff)
-
scripts/init-top/framebuffer (modified) (1 diff)
-
scripts/local (modified) (2 diffs)
-
scripts/local-top/lvm (modified) (1 diff)
-
scripts/local-top/udev_helper (modified) (1 diff)
-
scripts/nfs (modified) (1 diff)
-
update-initramfs (modified) (3 diffs)
-
update-initramfs.conf.5 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pkg/main/initramfs-tools/trunk/debian/changelog
r289 r905 1 initramfs-tools (0.85f.parsix1) unstable; urgency=high 2 3 * Parsix build with suspend2 support 4 5 -- Alan Baghumian <alan@technotux.org> Wed, 14 Mar 2007 15:04:24 +0330 1 initramfs-tools (0.86.parsix1) barry; urgency=low 2 3 * Parsix build, suspend2 support 4 5 -- Alan Baghumian <alan@technotux.org> Sun, 15 Apr 2007 09:20:24 +0330 6 7 initramfs-tools (0.86) unstable; urgency=low 8 9 * update-initramfs: Bound the mode and version variable. (closes: 403905) 10 11 * init: Set once the MODPROBE_OPTIONS environment variable and export it. 12 Don't forget to set -b to have the modprobe.d blacklists respected. 13 Thus remove everywhere the -q modprobe switch. 14 Thanks Ben Collins <bcollins@ubuntu.com> for the suggestion. 15 16 * small trailing whitespace cleanup, display full path of kernel-img.conf 17 in bug script. 18 19 * debian/control: Add busybox-initramfs as Ubuntu busybox alternative 20 to depends. Drop the sarge busybox-cvs-static entry. 21 22 * scripts/local-top/mdrun: Drop, existed for partial upgrades from sarge. 23 24 * scripts/local: Improve panic message and printed order. (closes: 414640) 25 Thanks Vincent.McIntyre@csiro.au for patch. 26 27 * scripts/functions: Check if panic is set before using it. (closes: 406107) 28 Thanks martin f krafft <madduck@debian.org> for report. 29 30 * hook-functions: Copy all kernel/drivers/{block,ide,scsi} subdir modules 31 instead of hardcoding the list of "supported" drivers. As consequence 32 the initramfs might be larger, but none of those should be missed! 33 As bonus syncs with Ubuntu. 34 35 * init: Mount /sys and /proc nodev, noexec, nosuid - Ubuntu sync. 36 37 * update-initramfs: If update-initramfs fails, restore the backup. 38 Useful if a MINKVER set is not fulfilled. (LP: #101844) 39 Thanks Soren Hansen <sh@linux2go.dk> for patch. 40 41 * initramfs-tools.preinst: Test if $RESUME is nonzero, not if it exists, 42 fixes issue of UUID resume dev. (LP: #67932) While there remove the 43 conffile mv handling of 0.61. 44 45 * scripts/functions: set_initlist() needs to add only script names with 46 alphabetics, numerics and underscores - skip any other. Bad enough 47 backup scripts get added, but they shouldn't lead to a panic. Also skip 48 directories that might lay around. (closes: 398347) (LP: #76131) 49 50 * initramfs-tools.8: Document valid script names. 51 52 * mkinitramfs: Don't add backup scripts to initramfs. (closes: 378682) 53 (LP: #78348) 54 55 * scripts/functions: run_scripts() return immediately if passed dir 56 does not exist. Empty dirs without boot script aren't created anymore. 57 58 * debian/copyright: Update my email, add Ben Collins, update years, 59 alphabetic authors sort + add new git tree location. 60 61 * mkinitramfs: Set PATH with /sbin to allow non-root user usage. 62 Thanks Bob Montgomery <bob.montgomery@hp.com> for the suggestion. 63 (closes: 409995) 64 65 -- maximilian attems <maks@debian.org> Tue, 10 Apr 2007 21:45:36 +0200 66 67 initramfs-tools (0.85g) unstable; urgency=high 68 69 * SECURITY scripts/functions: Set permission of created root dev in 70 parse_numeric() to 600. This bug only affects lilo boots. Thanks 71 Fabian Pietsch <fabian@canvon.dyndns.org> and Goswin von Brederlow 72 <brederlo@informatik.uni-tuebingen.de> for patch input. (closes: 417995) 73 74 * debian/control: Change Uploaders email. 75 76 -- maximilian attems <maks@debian.org> Fri, 6 Apr 2007 09:19:13 +0200 6 77 7 78 initramfs-tools (0.85f) unstable; urgency=high … … 103 174 104 175 * scripts/init-top/framebuffer: Fix regression of /dev/fb0 creation, 105 modprobe fb before creating device. Thanks to Otavio Salvador 176 modprobe fb before creating device. Thanks to Otavio Salvador 106 177 <otavio@debian.org> for patch. 107 178 … … 122 193 Olli Helenius <olli@starnet.fi> 123 194 124 * init-top/framebuffer: Fix duplicate fbno0 device creation. Merge the 195 * init-top/framebuffer: Fix duplicate fbno0 device creation. Merge the 125 196 0.69ubuntu10 solution. Thanks Benjamin Leipold <rabbit171@web.de> 126 197 for the report. (closes: 393890) -
pkg/main/initramfs-tools/trunk/debian/control
r289 r905 2 2 Section: utils 3 3 Priority: optional 4 Uploaders: Jeff Bailey <jbailey@ubuntu.com>, maximilian attems <maks@ sternwelten.at>4 Uploaders: Jeff Bailey <jbailey@ubuntu.com>, maximilian attems <maks@debian.org> 5 5 Maintainer: Debian kernel team <debian-kernel@lists.debian.org> 6 6 Build-Depends: debhelper (>= 4.1.0), cdbs … … 9 9 Package: initramfs-tools 10 10 Architecture: all 11 Depends: klibc-utils (>= 1.4.19-2), busybox (>= 1:1.01-3) | busybox- cvs-static (>= 20040623-1), cpio, module-init-tools, udev (>= 0.086-1)11 Depends: klibc-utils (>= 1.4.19-2), busybox (>= 1:1.01-3) | busybox-initramfs, cpio, module-init-tools, udev (>= 0.086-1) 12 12 Provides: linux-initramfs-tool 13 13 Description: tools for generating an initramfs -
pkg/main/initramfs-tools/trunk/debian/copyright
r289 r905 2 2 Thu, 27 Jan 2005 15:23:52 -0500. 3 3 4 The current Debian maintainer is maximilian attems <maks@ sternwelten.at>4 The current Debian maintainer is maximilian attems <maks@debian.org> 5 5 6 6 The source code up to 0.31 can be found by using "bzr" at: … … 10 10 http://archive.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/ 11 11 12 The Debian tree is maintained with "bzr" at: 13 http://bzr.debian.org/kernel/initramfs-tools/ 12 The Debian tree is maintained with "git" at: 13 git://git.debian.org/git/kernel/initramfs-tools.git 14 http://git.debian.org/?p=kernel/initramfs-tools.git;a=shortlog 14 15 15 Authors: Jeff Bailey <jbailey@ubuntu.com>, Adam Conrad <adconrad@ubuntu.com>, 16 Authors: Adam Conrad <adconrad@ubuntu.com>, 17 Ben Collins <bcollins@ubuntu.com>, 18 Jeff Bailey <jbailey@ubuntu.com>, 19 maximilian attems <maks@debian.org> 16 20 Scott James Remnant <scott@ubuntu.com>, 17 maximilian attems <maks@sternwelten.at>18 21 19 Copyright: 2005 Jeff Bailey 20 2005 - 2006 Adam Conrad 22 Copyright: 2005 - 2006 Adam Conrad 23 2006 Ben Collins 24 2005 Jeff Bailey 25 2005 - 2007 maximilian attems 21 26 2005 - 2006 Scott James Remnant 22 2005 - 2006 maximilian attems23 27 24 28 License: -
pkg/main/initramfs-tools/trunk/debian/initramfs-tools.preinst
r289 r905 16 16 . /etc/mkinitrd/mkinitrd.conf 17 17 fi 18 if [ - e ${RESUME}]; then18 if [ -n "${RESUME}" ]; then 19 19 echo "RESUME=${RESUME}" > /etc/initramfs-tools/conf.d/resume 20 20 fi … … 41 41 fi 42 42 ;; 43 upgrade)44 if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.61"; then45 if [ -d /etc/initramfs-tools ]; then46 echo47 echo "Warning: /etc/initramfs-tools already exists."48 echo " Please remove it for upgrade."49 echo50 exit 151 fi52 if [ -d /etc/mkinitramfs ]; then53 mv /etc/mkinitramfs /etc/initramfs-tools54 fi55 fi56 ;;57 43 esac 58 44 -
pkg/main/initramfs-tools/trunk/debian/script
r289 r905 16 16 17 17 if [ -r /etc/kernel-img.conf ]; then 18 echo "-- kernel-img.conf"18 echo "-- /etc/kernel-img.conf" 19 19 cat /etc/kernel-img.conf 20 20 echo -
pkg/main/initramfs-tools/trunk/hook-functions
r289 r905 173 173 ;; 174 174 ide) 175 for x in ide-cd ide-disk ide-generic aec62xx alim15x3 \ 176 amd74xx atiixp atuuxo cmd64x cs5520 cs5530 cy82c693 \ 177 generic hpt34x hpt366 it821x jmicron ns87415 opti621 \ 178 pdc202xx_new pdc202xx_old piix rz1000 sc1200 serverworks \ 179 siimage sis5513 slc82c105 slc90e66 triflex trm290 \ 180 via82cxxx; do 181 manual_add_modules "${x}" 182 done 175 copy_modules_dir kernel/drivers/ide 183 176 ;; 184 177 scsi) 185 for x in 3w-9xxx 3w-xxxx a100u2x aacraid advansys ahci \ 186 aic79xx aic7xxx aic94xx arcmsr ata_piix atari_scsi \ 187 atp870u BusLogic cciss ch cpqarray DAC960 dc395x \ 188 dmx3191d dpt_i2o eata fdomain gdth hptiop ibmvscsic \ 189 initio ipr ips isp1020 lasi700 lpfc max_scsi mac53c94 \ 190 megaraid megaraid_mbox megaraid_mm megaraid_sas \ 191 mesh mptfc mptscsih mptsas mptspi nsp32 \ 192 osst qla1280 qla2100 qla2200 qla2300 qla2322 qla2xxx \ 193 qla4xxx qla6312 qlogicfas408 qlogicfc sata_mv sata_nv \ 194 sata_promise sata_qstor sata_sil sata_sil24 sata_sis sata_svw \ 195 sata_sx4 sata_uli sata_via sata_vsc scsi_mod \ 196 scsi_transport_fc scsi_transport_iscsi scsi_transport_spi \ 197 sd_mod stex sym53c8xx tmscsim zalon zfcp; do 178 copy_modules_dir kernel/drivers/scsi 179 for x in mptfc mptsas mptscsih mptspi; do 198 180 manual_add_modules "${x}" 199 181 done … … 201 183 ata) 202 184 copy_modules_dir kernel/drivers/ata 185 ;; 186 block) 187 copy_modules_dir kernel/drivers/block 203 188 ;; 204 189 ieee1394) … … 222 207 auto_add_modules ide 223 208 auto_add_modules scsi 209 auto_add_modules block 224 210 auto_add_modules ata 225 211 auto_add_modules i2o -
pkg/main/initramfs-tools/trunk/init
r289 r905 9 9 [ -d /tmp ] || mkdir /tmp 10 10 mkdir -p /var/lock 11 mount -t sysfs none /sys 12 mount -t proc none /proc 11 mount -t sysfs none /sys -o nodev,noexec,nosuid 12 mount -t proc none /proc -o nodev,noexec,nosuid 13 13 14 14 # Suspend2 resume fix … … 40 40 done 41 41 . /scripts/functions 42 43 # Set modprobe env 44 export MODPROBE_OPTIONS="-qb" 42 45 43 46 # Export relevant variables -
pkg/main/initramfs-tools/trunk/initramfs-tools.8
r289 r905 1 .TH INITRAMFS-TOOLS 8 "Date: 200 6/10/14" "" "mkinitramfs script overview"1 .TH INITRAMFS-TOOLS 8 "Date: 2007/04/09" "" "mkinitramfs script overview" 2 2 3 3 .SH NAME … … 10 10 frobnication of a lvm partition prior to mounting the root partition. 11 11 12 Valid boot and hook scripts names consist solely of alphabetics, numerics 13 and underscores. Other scripts are discarded. 14 12 15 .SS Hook scripts 13 16 These are used when an initramfs image is created and not included in the … … 18 21 kernel boot in the early user-space before the root partition has been 19 22 mounted. 20 21 initramfs-tools uses shell variable names for handling dependencies.22 Notice that `-' is not a valid shell variable name and thus should23 not be used as script filename.24 23 25 24 .SH INIT SCRIPT -
pkg/main/initramfs-tools/trunk/mkinitramfs
r289 r905 2 2 3 3 umask 0022 4 export PATH='/usr/bin:/sbin:/bin' 4 5 5 6 # Defaults … … 200 201 201 202 copy_exec /usr/share/initramfs-tools/init /init 202 cp -a /usr/share/initramfs-tools/scripts/* "${DESTDIR}/scripts" 203 for f in $(cd ${CONFDIR}/scripts && \ 204 find . \( -name '*.dpkg*' -prune -o -name '*~' -prune \) \ 205 -o -type f -print); do 206 mkdir --parents "${DESTDIR}/scripts/$(dirname "${f}")" 207 cp -p "${CONFDIR}/scripts/${f}" "${DESTDIR}/scripts/$(dirname "${f}")" 208 done 203 204 # add existant boot scripts 205 for b in $(cd /usr/share/initramfs-tools/scripts/ && find . \ 206 -regex '.*/[a-z0-9_]+$' -type f); do 207 [ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \ 208 || mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")" 209 cp -p "/usr/share/initramfs-tools/scripts/${b}" \ 210 "${DESTDIR}/scripts/$(dirname "${b}")" 211 done 212 for b in $(cd "${CONFDIR}/scripts" && find . -regex '.*/[a-z0-9_]+$' -type f); do 213 [ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \ 214 || mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")" 215 cp -p "${CONFDIR}/scripts/${b}" "${DESTDIR}/scripts/$(dirname "${b}")" 216 done 217 209 218 echo "DPKG_ARCH=${DPKG_ARCH}" > ${DESTDIR}/conf/arch.conf 210 219 copy_exec "${CONFDIR}/initramfs.conf" /conf -
pkg/main/initramfs-tools/trunk/scripts/functions
r289 r905 61 61 fi 62 62 # Disallow console access 63 if [ "${panic}" = 0 ]; then63 if [ -n "${panic}" ] && [ "${panic}" = 0 ]; then 64 64 reboot 65 65 fi 66 modprobe -qi804267 modprobe -qatkbd66 modprobe i8042 67 modprobe atkbd 68 68 echo $@ 69 69 PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 2>&1 … … 86 86 unset initlist 87 87 for si_x in ${initdir}/*; do 88 # only allow variable name chars 89 case ${si_x#${initdir}/} in 90 *[!A-Za-z0-9_]*) 91 continue 92 ;; 93 esac 94 # skip non executable scripts 88 95 if [ ! -x ${si_x} ]; then 96 continue 97 fi 98 # skip directories 99 if [ -d ${si_x} ]; then 89 100 continue 90 101 fi … … 188 199 { 189 200 initdir=${1} 201 [ ! -d ${initdir} ] && return 190 202 get_prereqs 191 203 reduce_prereqs … … 207 219 continue 208 220 fi 209 modprobe -q$m221 modprobe $m 210 222 done 211 223 fi … … 233 245 234 246 mknod /dev/root b ${major} ${minor} 247 chmod 600 /dev/root 235 248 ROOT=/dev/root 236 249 } -
pkg/main/initramfs-tools/trunk/scripts/init-premount/thermal
r289 r905 19 19 # load the right modules 20 20 powerpc|ppc64) 21 modprobe -qi2c-powermac22 modprobe -qtherm_pm7223 modprobe -qwindfarm_cpufreq_clamp24 modprobe -qwindfarm_lm75_sensor25 modprobe -qwindfarm_max6690_sensor26 modprobe -qwindfarm_pm11227 modprobe -qwindfarm_pm8128 modprobe -qwindfarm_pm9129 modprobe -qwindfarm_smu_controls30 modprobe -qwindfarm_smu_sat31 modprobe -qwindfarm_smu_sensors21 modprobe i2c-powermac 22 modprobe therm_pm72 23 modprobe windfarm_cpufreq_clamp 24 modprobe windfarm_lm75_sensor 25 modprobe windfarm_max6690_sensor 26 modprobe windfarm_pm112 27 modprobe windfarm_pm81 28 modprobe windfarm_pm91 29 modprobe windfarm_smu_controls 30 modprobe windfarm_smu_sat 31 modprobe windfarm_smu_sensors 32 32 ;; 33 33 i386|amd64|ia64) 34 modprobe -qfan35 modprobe -qthermal34 modprobe fan 35 modprobe thermal 36 36 ;; 37 37 esac -
pkg/main/initramfs-tools/trunk/scripts/init-top/framebuffer
r289 r905 87 87 88 88 if [ -n "${FB}" ]; then 89 modprobe -qfbcon90 modprobe -q${FB} ${OPTS}89 modprobe fbcon 90 modprobe ${FB} ${OPTS} 91 91 fi 92 92 -
pkg/main/initramfs-tools/trunk/scripts/local
r289 r905 41 41 # We've given up, but we'll let the user fix matters if they can 42 42 while [ ! -e "${ROOT}" ]; do 43 echo " Check root= bootarg cat /proc/cmdline"44 echo " or missing modules, devices: cat /proc/modules ls /dev"45 panic " ALERT! ${ROOT} does not exist. Dropping to a shell!"43 echo "ALERT! ${ROOT} does not exist. Dropping to a shell!" 44 echo " Check your root= boot argument (cat /proc/cmdline)" 45 panic " Check for missing modules (cat /proc/modules), or device files (ls /dev)" 46 46 done 47 47 … … 68 68 69 69 # FIXME This has no error checking 70 modprobe -q${FSTYPE}70 modprobe ${FSTYPE} 71 71 72 72 # FIXME This has no error checking -
pkg/main/initramfs-tools/trunk/scripts/local-top/lvm
r289 r905 65 65 fi 66 66 67 modprobe -qdm-mod68 modprobe -qdm-snapshot69 modprobe -qdm-mirror67 modprobe dm-mod 68 modprobe dm-snapshot 69 modprobe dm-mirror 70 70 71 71 activate_vg "$ROOT" -
pkg/main/initramfs-tools/trunk/scripts/local-top/udev_helper
r289 r905 20 20 # we need to load ide-generic. 21 21 if [ ! -e "${ROOT}" -o "${ROOT}" = "/dev/root" ]; then 22 modprobe -qide-generic22 modprobe ide-generic 23 23 fi -
pkg/main/initramfs-tools/trunk/scripts/nfs
r289 r905 79 79 [ "$quiet" != "y" ] && log_end_msg 80 80 81 modprobe -qnfs81 modprobe nfs 82 82 # For DHCP 83 modprobe -qaf_packet83 modprobe af_packet 84 84 85 85 # Default delay is around 180s -
pkg/main/initramfs-tools/trunk/update-initramfs
r289 r905 5 5 CONF=/etc/initramfs-tools/update-initramfs.conf 6 6 KPKGCONF=/etc/kernel-img.conf 7 mode="" 8 version="" 7 9 8 10 set -e … … 112 114 } 113 115 116 # restore initramfs backup 117 restore_initramfs() 118 { 119 [ -z "${initramfs_bak}" ] && return 0 120 verbose "Restoring ${initramfs_bak}" 121 mv -f "${initramfs_bak}" "${initramfs}" 122 } 123 124 114 125 generate_initramfs() 115 126 { … … 123 134 else 124 135 mkinitramfs_return="$?" 136 restore_initramfs 125 137 if [ "$mkinitramfs_return" = "2" ]; then 126 138 # minversion wasn't met, exit 0 -
pkg/main/initramfs-tools/trunk/update-initramfs.conf.5
r289 r905 1 .TH UPDATE-INITRAMFS.CONF 5 "$Date: 2006/1 0/12 $" "" "update-initramfs.conf manual"1 .TH UPDATE-INITRAMFS.CONF 5 "$Date: 2006/12/22 $" "" "update-initramfs.conf manual" 2 2 3 3 .SH NAME … … 14 14 newest Linux image. 15 15 It is possible to set it to \fIno\fP for remote servers or boxes where 16 conservative manners needs to be applied. This disables 16 conservative manners needs to be applied. This disables 17 17 the \fBupdate_initramfs -u\fP call. 18 18
Note: See TracChangeset
for help on using the changeset viewer.


