** Description changed: Create the files: $ mkdir test $ cd test $ touch foo $ ln -s foo bar $ mkdir meta $ cat >meta/snap.yaml <<EOM name: test version: 1.0 architectures: [all] EOM Create the initial snap $ cd .. $ snapcraft snap ./test ... Snapped test_1.0_all.snap - $ mv test_1.0_all.snap test_1.0_all.snap.orig Unsquash the snap: - $ unsquashfs -d unsquashed test_1.0_all.snap.orig + $ unsquashfs -d unsquashed test_1.0_all.snap Parallel unsquashfs: Using 4 processors 3 inodes (2 blocks) to write [=======================================================================|] 2/2 100% created 2 files created 2 directories created 1 symlinks created 0 devices created 0 fifos - Resquash the snap: - $ snapcraft snap ./unsquashed + Resquash the snap (the sleep is to make sure the time changes on the symlink): + $ unsquashfs -fstime ./test_1.0_all.snap + 1457551603 + $ mksquashfs ./unsquashed ./test_1.0_all.snap.repacked -fstime 1457551603 -noappend -comp xz -all-root -no-xattrs ... - Snapped test_1.0_all.snap Compare: - $ unsquashfs -lls ./test_1.0_all.snap.orig - Parallel unsquashfs: Using 4 processors - 3 inodes (2 blocks) to write + $ sha512sum test_1.0_all.snap + 40a15430503783541b362942491ee614b16941676d6c3edd86005af7b6b0782374e41c0c006dccb3a164d2c0270ace66639fcdee5ece3571db1c7544d59030e3 test_1.0_all.snap - drwxrwxr-x root/root 49 2016-03-09 13:26 squashfs-root - lrwxrwxrwx root/root 3 2016-03-09 13:26 squashfs-root/bar -> foo - -rw-rw-r-- root/root 0 2016-03-09 13:26 squashfs-root/foo - drwxrwxr-x root/root 32 2016-03-09 13:26 squashfs-root/meta - -rw-rw-r-- root/root 45 2016-03-09 13:26 squashfs-root/meta/snap.yaml - - $ unsquashfs -lls ./test_1.0_all.snap - Parallel unsquashfs: Using 4 processors - 3 inodes (2 blocks) to write - - drwxrwxr-x root/root 49 2016-03-09 13:26 squashfs-root - lrwxrwxrwx root/root 3 2016-03-09 13:28 squashfs-root/bar -> foo - -rw-rw-r-- root/root 0 2016-03-09 13:26 squashfs-root/foo - drwxrwxr-x root/root 32 2016-03-09 13:26 squashfs-root/meta - -rw-rw-r-- root/root 45 2016-03-09 13:26 squashfs-root/meta/snap.yaml + $ sha512sum test_1.0_all.snap.repack + d8b9626337b8f09288f6aab675041dba639523437dd1d8f11b3f883cfa73ea434f2be06f5cd9cdec4ac9bdf2a40f8b484dc516ec851870c81be133cbdebf35a4 test_1.0_all.snap.repack - Notice that the symlink 'bar' has a different timestamp from the original and the resquashed which is causing the review tools trouble. + Removing the symlink makes the check work.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1555305 Title: resquashfs test fails if snap has symlinks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/click-reviewers-tools/+bug/1555305/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
