btobuild can't create not exist soft link

Bug #1320109 reported by Shawn Wang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dell Recovery
Invalid
Undecided
Unassigned

Bug Description

It caused sysem can't boot

Reproduce process:
host: precise
target iso: trusty

 $ btobuild -b <base.iso> target_X00.html

lzma -dc -S .lz ../initrd.lz | cpio -id

 can't find below file
./etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf -> /etc/alternatives/x86_64-linux-gnu_egl_conf
./sbin/modprobe -> /bin/kmod
./sbin/udevadm -> /bin/udevadm
./sbin/rmmod -> /bin/kmod

original command:
 cpio --quiet --dereference -o -H newc
remove --dereference [can fix this issue]
 cpio --quiet -o -H newc

-L, --dereference
Dereference symbolic links (copy the files that they point to instead of copying the links).

Shawn Wang (shawn111)
information type: Public → Private
information type: Private → Public
Revision history for this message
Shawn Wang (shawn111) wrote :

revno: 976 [merge]
committer: Mario Limonciello <email address hidden>
branch nick: dell-recovery
timestamp: Mon 2014-03-17 13:48:49 -0500
message:
  disable dereference in building initrd.

=== modified file 'Dell/recovery_common.py'
--- Dell/recovery_common.py 2014-03-17 18:46:34 +0000
+++ Dell/recovery_common.py 2014-03-17 18:48:49 +0000
@@ -524,8 +524,7 @@
     new_initrd_file = os.path.join(new_initrd_directory, 'initrd' + new_suffix)
     logging.debug("create_new_uuid: new initrd file: %s" % new_initrd_file)
     chain0 = subprocess.Popen(['find'], cwd=tmpdir, stdout=subprocess.PIPE)
- chain1 = subprocess.Popen(['cpio', '--quiet', '--dereference', '-o',
- '-H', 'newc'],
+ chain1 = subprocess.Popen(['cpio', '--quiet', '-o', '-H', 'newc'],
                                cwd=tmpdir, stdin=chain0.stdout,
                                stdout=subprocess.PIPE)
     with open(new_initrd_file, 'wb') as initrd_fd:

=== modified file 'debian/changelog'
--- debian/changelog 2014-03-17 18:47:35 +0000
+++ debian/changelog 2014-03-17 18:48:49 +0000
@@ -8,6 +8,7 @@
   * debian/control: new standards version
   * set booting kernel name to vmlinuz.efi now.
   * drop old GRUB patches, only want to be booting to trusty+ now.
+ * disable dereference in building initrd.

  -- Mario Limonciello <email address hidden> Tue, 11 Mar 2014 14:07:52 -0500

Revision history for this message
Shawn Wang (shawn111) wrote :

This bug is fixed.

Changed in dell-recovery:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.