Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159624 Details for
Bug 248979
initrd no longer works, switch to initramfs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
initramfs.patch
initramfs.patch (text/plain), 2.76 KB, created by
Pierre Ossman
on 2007-07-19 23:50:26 UTC
(
hide
)
Description:
initramfs.patch
Filename:
MIME Type:
Creator:
Pierre Ossman
Created:
2007-07-19 23:50:26 UTC
Size:
2.76 KB
patch
obsolete
>--- updateDiskless.bak 2007-01-22 20:15:49.000000000 +0100 >+++ updateDiskless 2007-07-20 01:39:12.000000000 +0200 >@@ -73,7 +73,7 @@ > # > # Copy the diskless init script onto the image > # >-/bin/cp $INSTALLDIR/disklessrc $MNTPOINT/disklessrc || die; >+/bin/cp $INSTALLDIR/disklessrc $MNTPOINT/init || die; > # > # create required directories on the image > # >@@ -278,65 +278,15 @@ > imagesize=16000; > fi; > uncompressedimage=/tmp/image$$ >-TMPDIR=$MNTPOINT >-MNTPOINT=/mnt/$$ >-/bin/mkdir -p $MNTPOINT || die; >-rm -f $uncompressedimage; >-/bin/dd if=/dev/zero of=$uncompressedimage bs=1k count=$imagesize 2> /dev/null || die; >-chmod +rw $uncompressedimage; >-img=$uncompressedimage >-SIDEFFECTS="$MNTPOINT $uncompressedimage"; >-SELINUX= >-SEMLS= >-sedir=`while read d dir type r; do if [ "$type" = "selinuxfs" ]; then echo $dir; break; fi; done < /proc/mounts` >-if [ -e $sedir/enforce ]; then >- SELINUX=1 >-# SELinux is enabled; could be enforcing / permissive, doesn't matter >- if [ -e $sedir/mls ] && [ `cat $sedir/mls` -eq 1 ]; then >- SEMLS=':s0'; >- fi; >-fi >-if [ "$SELINUX" -eq 1 ]; then >- /usr/bin/chcon -t fsadm_tmp_t $img >/dev/null 2>&1; >- # under new SELinux, mke2fs/tune2fs can only create filesystems in files with this context >-fi >-# We have to "echo y |" so that it doesn't complain about $IMAGE not >-# being a block device >-mke2fsOut=`echo y | /sbin/mke2fs $img 2>&1`; >-if [ $? -ne 0 ]; then >- echo -e "mke2fs failed:\n$mke2fsOut"; >- die; >-fi; >-/sbin/tune2fs -i0 $img >/dev/null 2>&1 || die; >-if [ -n "$SELINUX" ]; then >- /usr/bin/chcon -t mount_tmp_t $img >/dev/null 2>&1; >-# new SELinux mount cannot mount files unless they have this context >- /bin/mount -t ext2 -o loop,context=system_u:object_r:removable_t${SEMLS} $img $MNTPOINT || die; >-# do NOT enable creation of SELinux xattr labels in the initrd; new SELinux requires ':s0', old does not :-( >-else >-# SELinux is disabled / not present; no labels will be created >- /bin/mount -t ext2 -o loop $img $MNTPOINT || die; >-fi >-CLEANUP="/bin/umount -f $MNTPOINT" > # >-# We don't need this directory, so let's save space >-/bin/rm -rf $MNTPOINT/'lost+found' >+# Create the cpio archive > # >-# Copy the temp directory to the initrd: >-# >-if ! (cd $TMPDIR; /bin/tar -cpf - . || die ) | (cd $MNTPOINT; /bin/tar -xpf -) ; then >- echo "Creation of initrd failed." >- die >-fi; >-/bin/rm -rf $TMPDIR; >+(cd $MNTPOINT; echo nash-find . | /sbin/nash --force --quiet | cpio -H newc --quiet -o) >| $uncompressedimage || die; >+rm -rf $MNTPOINT > SIDEFFECTS=$uncompressedimage > # >-# Unmount and compress image file to be ready to boot >+# Compress image file to be ready to boot > # >-/bin/sync >-/bin/umount $MNTPOINT >-CLEANUP='' >-/bin/rmdir $MNTPOINT > /bin/mkdir -p "$DESTDIR" ; > if [ ! -d "$DESTDIR" ]; then > echo "Cannot create $DESTDIR directory.";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248979
: 159624