)]}'
{
  "commit": "d20d5a7456d57d8affa88f45f27ae96ea49c29e4",
  "tree": "baa9169c23c16b55d46968b5b4964c6e950645e9",
  "parents": [
    "f1671f6d783a2385d32e11f456cbe32f0e4b4b49"
  ],
  "author": {
    "name": "Randy Robertson",
    "email": "rmrobert@vmware.com",
    "time": "Mon Apr 13 14:40:04 2009 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Mon Apr 13 15:04:31 2009 -0700"
  },
  "message": "initramfs: fix initramfs to work with hardlinked init\n\nChange cb6ff208076b5f434db1b8c983429269d719cef5 (\"NOMMU: Support XIP on\ninitramfs\") seems to have broken booting from initramfs with /sbin/init\nbeing a hardlink.\n\nIt seems like the logic required for XIP on nommu, i.e.  ftruncate to\nreported cpio header file size (body_len) is broken for hardlinks, which\nhave a reported size of 0, and the truncate thus nukes the contents of the\nfile (in my case busybox), making boot impossible and ending with runaway\nloop modprobe binfmt-0000 - and of course 0000 is not a valid binary\nformat.\n\nMy fix is to only call ftruncate if size is non-zero which fixes things\nfor me, but I\u0027m not certain whether this will break XIP for those files on\nnommu systems, although I would guess not.\n\nSigned-off-by: Randy Robertson \u003crmrobert@vmware.com\u003e\nAcked-by: David Howells \u003cdhowells@redhat.com\u003e\nAcked-by: Paul Mundt \u003clethal@linux-sh.org\u003e\nAcked-by: H. Peter Anvin \u003chpa@zytor.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e44f2d932cc4cc9d28d0be14864220b5888212e7",
      "old_mode": 33188,
      "old_path": "init/initramfs.c",
      "new_id": "9ee7b78104175e107cb4ce5084f089a674ad71f9",
      "new_mode": 33188,
      "new_path": "init/initramfs.c"
    }
  ]
}
