--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools: [patch] fixes missing/ignored $tmpfs_size in the init script
- From: Balwinder S Dheeman <bdheeman@gmail.com>
- Date: Thu, 26 Apr 2012 13:05:03 +0530
- Message-id: <20120426073503.3201.17732.reportbug@anu.homelinux.net>
- Reply-to: bdheeman@gmail.com
Package: initramfs-tools
Version: 0.102
Severity: normal
Tags: patch
Dear Maintainer,
* What led up to the situation?
The mouted size of /dev is larger then 10M (which is default, in the init
script itself).
* What exactly did you do (or not do) that was effective (or ineffective)?
On examining the /usr/share/initramfs-tools/init I found a skipp over or typo.
* What was the outcome of this action?
I patched the init script, rebuild/updated /boot/initrd-<whatever> using
update-initramfs -u; rebooted the system and report size now is 10M :)
* What outcome did you expect instead?
The udevfs/tmfs size for the /dev should be 10M (default) or as per
/etc/udev/udev.conf
-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.2.0-2-amd64 root=UUID=6f57d8ea-bb70-4e9e-9cba-21b3e9fa75ab ro nomodeset splash quiet
-- resume
RESUME=UUID=63e8707b-45be-4bfe-a203-c73223653920
-- /proc/filesystems
ext3
fuseblk
ufs
vfat
iso9660
-- lsmod
Module Size Used by
pci_stub 12429 1
vboxpci 19066 0
vboxnetadp 13155 0
vboxnetflt 23571 0
vboxdrv 190057 3 vboxnetflt,vboxnetadp,vboxpci
microcode 25793 0
ppdev 12763 0
lp 17149 0
binfmt_misc 12957 1
nfnetlink_log 17212 0
nfnetlink 12906 1 nfnetlink_log
uinput 17440 1
deflate 12551 0
zlib_deflate 25638 1 deflate
ctr 12979 0
twofish_generic 16569 0
twofish_x86_64_3way 25167 0
twofish_x86_64 12501 1 twofish_x86_64_3way
twofish_common 20544 3 twofish_x86_64,twofish_x86_64_3way,twofish_generic
camellia 29068 0
serpent 29015 0
blowfish_generic 12464 0
blowfish_x86_64 21201 0
blowfish_common 16447 2 blowfish_x86_64,blowfish_generic
cast5 24829 0
des_generic 20851 0
cbc 12754 0
cryptd 14517 0
aes_x86_64 16796 0
aes_generic 33026 1 aes_x86_64
xcbc 12709 0
rmd160 16640 0
sha512_generic 12625 0
sha256_generic 16797 0
sha1_ssse3 16983 0
sha1_generic 12539 1 sha1_ssse3
hmac 12835 0
crypto_null 12732 0
af_key 31759 2
acpi_cpufreq 12935 0
mperf 12453 1 acpi_cpufreq
cpufreq_powersave 12454 0
cpufreq_conservative 13147 0
cpufreq_userspace 12576 0
cpufreq_stats 12866 0
nfsd 211858 13
nfs 312191 0
nfs_acl 12511 2 nfs,nfsd
auth_rpcgss 37143 2 nfs,nfsd
fscache 36739 1 nfs
lockd 67328 2 nfs,nfsd
sunrpc 173671 19 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
sit 17561 0
tunnel4 12629 1 sit
ip6t_LOG 12609 3
ip6t_REJECT 12512 23
nf_conntrack_ipv6 13316 34
nf_defrag_ipv6 12788 1 nf_conntrack_ipv6
ip6table_mangle 12540 1
ip6table_filter 12540 1
ip6_tables 22175 3 ip6table_filter,ip6table_mangle,ip6t_LOG
ipt_LOG 12605 3
ipt_REJECT 12502 23
xt_recent 13188 10
xt_limit 12638 18
xt_state 12503 66
xt_connlimit 12622 2
iptable_nat 12928 1
nf_nat 18242 1 iptable_nat
nf_conntrack_ipv4 14078 37 nf_nat,iptable_nat
nf_defrag_ipv4 12483 1 nf_conntrack_ipv4
nf_conntrack 52720 6 nf_conntrack_ipv4,nf_nat,iptable_nat,xt_connlimit,xt_state,nf_conntrack_ipv6
xt_TCPMSS 12670 2
xt_tcpudp 12570 130
iptable_mangle 12536 1
iptable_filter 12536 1
ip_tables 22042 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 19073 17 ip_tables,iptable_filter,iptable_mangle,xt_tcpudp,xt_TCPMSS,iptable_nat,xt_connlimit,xt_state,xt_limit,xt_recent,ipt_REJECT,ipt_LOG,ip6_tables,ip6table_filter,ip6table_mangle,ip6t_REJECT,ip6t_LOG
nls_utf8 12456 2
isofs 35171 2
loop 22641 4
nls_cp437 16553 2
vfat 17316 1
fat 45642 1 vfat
ufs 58774 4
fuse 61981 3
usbhid 36379 0
hid 81288 1 usbhid
pl2303 17262 0
usbserial 32061 1 pl2303
usb_storage 43870 0
uvcvideo 57744 0
videodev 70889 1 uvcvideo
v4l2_compat_ioctl32 16655 1 videodev
media 18148 2 videodev,uvcvideo
i2c_core 23876 1 videodev
uas 13296 0
snd_hda_codec_analog 78059 1
snd_hda_intel 26345 4
snd_hda_codec 78031 2 snd_hda_intel,snd_hda_codec_analog
snd_hwdep 13186 1 snd_hda_codec
snd_pcm_oss 41081 0
snd_mixer_oss 17916 3 snd_pcm_oss
snd_pcm 63900 3 snd_pcm_oss,snd_hda_codec,snd_hda_intel
snd_page_alloc 13003 2 snd_pcm,snd_hda_intel
snd_seq_midi 12848 0
snd_seq_midi_event 13316 1 snd_seq_midi
snd_rawmidi 23060 1 snd_seq_midi
snd_seq 45093 2 snd_seq_midi_event,snd_seq_midi
ata_generic 12479 0
sr_mod 21899 0
cdrom 35401 1 sr_mod
snd_seq_device 13176 3 snd_seq,snd_rawmidi,snd_seq_midi
arc4 12458 2
snd_timer 22917 2 snd_seq,snd_pcm
ohci_hcd 22467 0
pata_sis 17419 1
snd 52850 15 snd_timer,snd_seq_device,snd_seq,snd_rawmidi,snd_pcm,snd_mixer_oss,snd_pcm_oss,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_analog
ehci_hcd 40215 0
usbcore 128498 9 ehci_hcd,ohci_hcd,uas,uvcvideo,usb_storage,usbserial,pl2303,usbhid
r8169 46980 0
rtl8180 31369 0
shpchp 31293 0
usb_common 12354 1 usbcore
mii 12675 1 r8169
eeprom_93cx6 12455 1 rtl8180
mac80211 192768 1 rtl8180
cfg80211 137140 2 mac80211,rtl8180
rfkill 19012 1 cfg80211
soundcore 13065 3 snd
parport_pc 22364 1
parport 31858 3 parport_pc,lp,ppdev
evdev 17562 10
pcspkr 12579 0
processor 28106 1 acpi_cpufreq
button 12937 0
ext3 161867 5
mbcache 13065 1 ext3
jbd 56902 1 ext3
sd_mod 36136 14
crc_t10dif 12348 1 sd_mod
thermal 17383 0
thermal_sys 18040 2 thermal,processor
ahci 24997 11
libahci 22860 1 ahci
libata 140589 4 libahci,ahci,pata_sis,ata_generic
scsi_mod 162458 5 libata,sd_mod,sr_mod,uas,usb_storage
-- /etc/initramfs-tools/modules
-- /etc/kernel-img.conf
-- /etc/initramfs-tools/initramfs.conf
MODULES=${MODULES:=dep}
BUSYBOX=y
KEYMAP=n
COMPRESS=lzma
BOOT=local
DEVICE=
NFSROOT=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
busybox
dmsetup
fuse
keymap
klibc
kmod
ntfs_3g
plymouth
thermal
udev
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-7
ii klibc-utils 2.0~rc3-1
ii module-init-tools 6-2
ii udev 175-3.1
Versions of packages initramfs-tools recommends:
ii busybox 1:1.19.3-6
Versions of packages initramfs-tools suggests:
ii bash-completion 1:1.99-3
-- Configuration Files:
/etc/bash_completion.d/initramfs-tools [Errno 2] No such file or directory: u'/etc/bash_completion.d/initramfs-tools'
/etc/initramfs-tools/initramfs.conf changed:
MODULES=${MODULES:=dep}
BUSYBOX=y
KEYMAP=n
COMPRESS=lzma
BOOT=local
DEVICE=
NFSROOT=auto
-- no debconf information
--- a/usr/share/initramfs-tools/init 2011-08-11 09:37:12.000000000 +0000
+++ b/usr/share/initramfs-tools/init 2012-04-26 05:58:40.000000000 +0000
@@ -17,7 +17,7 @@
if [ -e /etc/udev/udev.conf ]; then
. /etc/udev/udev.conf
fi
-if ! mount -t devtmpfs -o mode=0755 udev /dev; then
+if ! mount -t devtmpfs -o size=$tmpfs_size,mode=0755 udev /dev; then
echo "W: devtmpfs not available, falling back to tmpfs for /dev"
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
--- End Message ---