diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2016-07-26 13:44:30 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2016-07-26 13:44:30 +0100 |
commit | b37383236dd3b1b261945f000ee4c5abd021c74d (patch) | |
tree | b03fab7a3c4e30dbd512583b77c7b767a6a7f93d /debian/local | |
parent | 70eda1446aee7b45fabbf4e4800a078fb1477e57 (diff) |
Ship libgcc_s into the initrd, for scrub to work because it uses pthread_cancel. Thanks Guilhem. (Closes: #830883)
Diffstat (limited to 'debian/local')
-rw-r--r-- | debian/local/btrfs.hook | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/local/btrfs.hook b/debian/local/btrfs.hook index d31199cb..f4dbb9da 100644 --- a/debian/local/btrfs.hook +++ b/debian/local/btrfs.hook @@ -26,4 +26,8 @@ then then copy_exec /bin/fsck.btrfs /bin fi + LIBC_DIR=$(ldd /bin/btrfs | sed -nr 's#.* => (/lib.*)/libc\.so\.[0-9.-]+ \(0x[[:xdigit:]]+\)$#\1#p') + find -L "$LIBC_DIR" -maxdepth 1 -name 'libgcc_s.*' -type f | while read so; do + copy_exec "$so" + done fi |