Your message dated Mon, 30 Nov 2015 06:18:47 +0000 with message-id <[email protected]> and subject line Bug#736503: fixed in flash-kernel 3.52 has caused the Debian Bug report #736503, regarding flash-kernel: Backup mtdblocks after every flash-kernel execution to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 736503: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736503 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: flash-kernel Version: 3.13 Severity: wishlist Dear Mantainer, After solving a boot problem I had, I've considered very useful to have an up-to-date backup of mtdblock partitions, that could be used to restore the SPI NOR Flash in case of disaster. I think this would be useful to pretty much everyone, not just me. To achieve this, and not wanting to fiddle with flash-kernel source at this point, I've created the following script (pardon my poor scripting skills) and linked to it on /etc/initramfs/post-update.d/, but I think it should be integrated in flash-kernel. I understand the impact in terms of flash-kernel execution time, but, IMO, is well worth it. Could you please consider including this functionality in flash-kernel? Thank you! Ruben ---------- Begin of Script ---------- #!/bin/sh BACKUP_KEEP_AT_MOST=5 BACKUP_DIRECTORY=/var/backups BACKUP_SUBDIRECTORY=flash-kernel backup_mtdblocks() { [ ! -d "$BACKUP_DIRECTORY" ] && return 0 local PARTITION_COUNT=$('ls' -1 /dev/mtdblock* | 'wc' -l) if [ "$PARTITION_COUNT" != "0" ]; then local TIME=$(date +"%Y-%m-%d_%H-%M-%S") rm -fr $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME > /dev/null 2>&1 mkdir -p $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME > /dev/null 2>&1 echo "Backing up $PARTITION_COUNT /dev/mtdblock* partition(s) to $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME..." echo "Generated at $TIME. Contents are as follows:" > $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME/description for PARTITION in $('ls' -dtr1 /dev/mtdblock*); do local FILE=$('basename' $PARTITION) echo -n "$FILE... " cat $PARTITION > $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME/$FILE echo "Ok!" echo -n "$FILE: " >> $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME/description 'file' -b $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME/$FILE >> $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/$TIME/description done fi echo -n "Keeping only last $BACKUP_KEEP_AT_MOST backups... " 'ls' -dtr1 $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/*/ | 'head' -n -$BACKUP_KEEP_AT_MOST | 'xargs' rm -fr echo "Ok! Current backups are:" 'ls' -dtr1 $BACKUP_DIRECTORY/$BACKUP_SUBDIRECTORY/*/ | sort echo "Done!" return 0 } backup_mtdblocks exit $? ---------- End of Script ---------- -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: armel (armv5tel) Kernel: Linux 3.12-1-kirkwood Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages flash-kernel depends on: ii devio 1.2-1+b1 ii initramfs-tools 0.115 ii linux-base 3.5 flash-kernel recommends no packages. Versions of packages flash-kernel suggests: ii u-boot-tools 2013.10-3 -- no debconf information
--- End Message ---
--- Begin Message ---Source: flash-kernel Source-Version: 3.52 We believe that the bug you reported is fixed in the latest version of flash-kernel, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Christian Perrier <[email protected]> (supplier of updated flash-kernel package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Mon, 30 Nov 2015 06:57:43 +0100 Source: flash-kernel Binary: flash-kernel flash-kernel-installer Architecture: source armel Version: 3.52 Distribution: unstable Urgency: medium Maintainer: Debian Install System Team <[email protected]> Changed-By: Christian Perrier <[email protected]> Description: flash-kernel - utility to make certain embedded devices bootable flash-kernel-installer - Make the system bootable (udeb) Closes: 736503 794265 803115 804359 806171 Changes: flash-kernel (3.52) unstable; urgency=medium . [ Eric Cooper ] * Correctly test endianess on NSLU2 (Closes: #804359) * Add option to avoid creation of .bak files (Closes: #803115) . [ Ian Campbell ] * Succeed but do nothing when run on an unknown machine which was booted via EFI. Based on a patch from Newell Jensen. (Closes: #806171) * Use /dev/mtdN when flashing, rather than needlessly going through the mtdblock layer (which is problematic on some platforms/kernels). (Closes: #794265) * Keep a backup copy of any files written to either a filesystem mounted via Boot-Device or directly to a flash device under /var/backups/flash-kernel. This makes files which are not normally visible via the regular filesystem available e.g. for convenient backing up (Closes: #736503) Checksums-Sha1: 7947c48fdb16eac7938ff7d95372c44decd065e0 1853 flash-kernel_3.52.dsc e214597b765765ddb9c68c7c51bf8d25bb33ac65 64512 flash-kernel_3.52.tar.xz 1cccf8237a542e1fdcba492554e1219dab865cfe 24258 flash-kernel-installer_3.52_armel.udeb 06a0e34572a5660e6ad7394d5a0cbc01dbceedc6 40512 flash-kernel_3.52_armel.deb Checksums-Sha256: 77c7b9839f496c429a45f8646c0b2931d305e34285c2414ff6cdcb83b633143d 1853 flash-kernel_3.52.dsc 19ef6e5ef149252346c96a46fae8a4fbc2e8680309f60d6ce6b8868d5da9668a 64512 flash-kernel_3.52.tar.xz 5439824c4a6635e1da7b8834c94e9afab3838e2355e3432d54e3b49a9e3acbcd 24258 flash-kernel-installer_3.52_armel.udeb 478c5675a66501304c7d52a3ba2c75a60875cd2267e6fd2a7b538056b0a65d29 40512 flash-kernel_3.52_armel.deb Files: 33e7439b54fafa1417424dc12adb6b36 1853 utils optional flash-kernel_3.52.dsc 76bbde4d76ecbaca0d28d0d1db71a291 64512 utils optional flash-kernel_3.52.tar.xz 85bd5ce2469fbcf5ed9ba9283662ec92 24258 debian-installer standard flash-kernel-installer_3.52_armel.udeb e71ee2e674a7b8aaaed4803c8edea7df 40512 utils optional flash-kernel_3.52_armel.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWW+a5AAoJEIcvcCxNbiWoMhwP/13TXQPAJdoQgBG7z+2Mc8Vp PMORsew0QdeVW2S2Z719w2ZbuRgD7P9NbGXCd0HynXk1skEnkFScLvYqAemCtB+p IqWkk+S7tUW/B/iqLskcj+8MxkqDNd/i6gZbuksRMIrgI0+Juzt2i5zh3hyQFBMJ fPkanKjEh2TctLG4sAtkfDeA5xTf0wJAMcslk/nveb5ZY8vncYPOB/gn0zBXAxcT 2r6517pQ/hSFwCISK+tKtSDovI0R99E6tHONJnK1puDskfTlEviNP7cs1sZaSojb +IP7RpaJ9MfSUsVbXLGbim6FzKLV9d73IeCfuhDybxWdyRCAWvfZMCJ+BrUA+EQL +Dotphex8N4qIklfAdg5KRMcfsd2McqoJL+tTUaYzZ+miq0c4A4JYfm5L/xXd/jO d+hHmfGoVBH+YN2EihyKniJWxezcM5pOC0uQKAzyPHVBCW2QwVlJ9YfVQXFrC1W9 a7fZt4jGMqLZtnI7BwpDGN+mWKIAs8Ei7R3i24+S1e9aGhHB8BnL6UDxQBz54tZr F86gUCCyZNdAC34sn6QXe+PpEO4omGDcl2IjKACjQgbLSogNqM1qPNwjmyREa8Ra lmlPFC0r4AMlc7Je4oUME06XRL/zbq45NIYtw8VMvPtBQhhIl2dK60QXL0PKbtow 3a3cCoJx1BSZJD5rI9gn =PuuA -----END PGP SIGNATURE-----
--- End Message ---

