btobuild can't create not exist soft link
Bug #1320109 reported by
Shawn Wang
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.
./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).
information type: | Public → Private |
information type: | Private → Public |
To post a comment you must log in.
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' common. py 2014-03-17 18:46:34 +0000 common. py 2014-03-17 18:48:49 +0000 initrd_ file = os.path. join(new_ initrd_ directory, 'initrd' + new_suffix) debug(" create_ new_uuid: new initrd file: %s" % new_initrd_file) Popen([ 'find'] , cwd=tmpdir, stdout= subprocess. PIPE) Popen([ 'cpio', '--quiet', '--dereference', '-o', Popen([ 'cpio', '--quiet', '-o', '-H', 'newc'],
cwd= tmpdir, stdin=chain0. stdout,
stdout= subprocess. PIPE) initrd_ file, 'wb') as initrd_fd:
--- Dell/recovery_
+++ Dell/recovery_
@@ -524,8 +524,7 @@
new_
logging.
chain0 = subprocess.
- chain1 = subprocess.
- '-H', 'newc'],
+ chain1 = subprocess.
with open(new_
=== 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