Commit Graph

68 Commits

Author SHA1 Message Date
Simone Karin Lehmann b7fd6adc6f fix typos 2018-03-14 00:00:52 +01:00
Simone Karin Lehmann a3f6405441 add copyright notice 2018-03-13 23:44:55 +01:00
Simone Karin Lehmann 24e089636e fix a typo 2018-03-13 23:43:41 +01:00
Simone Karin Lehmann af82904390 update README to reflect the changes on macOS. 2018-03-13 23:42:33 +01:00
Simone Karin Lehmann 668127a2c6 some Xcode shared data 2018-03-13 22:55:52 +01:00
Simone Karin Lehmann 0945eb2b94 add truncate to Makefile, add uninstall target to Makefile 2018-03-13 22:43:49 +01:00
Simone Karin Lehmann a9b0244e29 fix the calculation again to be used by truncate. use truncate instead of dd. add build instructions for truncate to the helper script to build it on macOS 2018-03-13 22:29:56 +01:00
Simone Karin Lehmann 9ec17c9c1d fix the calculation of the total new image size 2018-03-13 22:23:31 +01:00
Simone Karin Lehmann 39de57246b add Makefile to build e2fs tools and install everything in /usr/local/bin 2018-03-13 22:04:54 +01:00
Simone Karin Lehmann 35e91edc75 rename to pishrink,since we move this in /usr/local/bin and chmod a+x, add a Makefile 2018-03-13 22:02:43 +01:00
Simone Karin Lehmann ea26712efe add a helper script to build the e2fs tools we need. 2018-03-13 21:12:47 +01:00
Simone Karin Lehmann 97181f9a21 on macOS use fdisk instead of parted, hdiutil instead of losetup and dd instead of truncate. Changed the logic of adding extra space, now always use 200 MB extra space 2018-03-13 20:53:36 +01:00
Simone Karin Lehmann afe05729d8 no need to run as root on macOS, cause we're installing the needed ext2 tools in a user readable path 2018-03-13 20:36:14 +01:00
Simone Karin Lehmann b4cd7ec07a ignore more xcuserdata 2018-03-13 20:32:34 +01:00
Simone Karin Lehmann da1480e329 ignore xcuserdata 2018-03-13 20:22:40 +01:00
Simone Karin Lehmann 5f0b9f83fa as long as there's no reliable ext2 file system driver on macOS, drop the auto_expanding feature to avoid data corruption 2018-03-13 20:14:32 +01:00
Simone Karin Lehmann 7abc57518b README: this is a port to run on macOS 2018-03-13 20:10:49 +01:00
Simone Karin Lehmann 82ecbde789 place sources under Xcode 2018-03-13 19:57:53 +01:00
Drew Bonasera 83e72eeec3
Add NOOBS warning to README 2018-02-03 18:00:44 -05:00
Drew Bonasera eac933beb8 Add `-a minimal` to parted call to fix errors with some images 2018-02-03 17:38:31 -05:00
Drew Bonasera 54051ea2e3
Merge pull request #43 from framps/master
Added installation instructions in README
2018-02-03 17:03:32 -05:00
Drew Bonasera 551e9950ac
Reorder Readme 2018-02-03 17:02:23 -05:00
Drew Bonasera 8dccf7d154
Merge pull request #40 from lurch/various-tweaks
Various tweaks
2018-02-03 16:53:34 -05:00
Andrew Scheller 3568798dd4 Give the new file the same ownership as the old file
(instead of having it always owned just by root)
2018-01-29 09:58:24 +00:00
Andrew Scheller 201db16c93 Replace `expr` with bash built-in arithmetic, and tidy up free-space calculation 2018-01-29 09:58:24 +00:00
Andrew Scheller 8331faf8f3 Check for additional required commands 2018-01-29 09:58:24 +00:00
Andrew Scheller e3ff4d20aa Double-quote all the filenames 2018-01-29 09:58:24 +00:00
Andrew Scheller ec95ba8097 `ls` doesn't need `-a` flag when passed a filename 2018-01-29 09:57:19 +00:00
Andrew Scheller c69f57affe Tighten up grep matches 2018-01-29 09:57:19 +00:00
Andrew Scheller 8784bda989 Avoid calling identical commands multiple times 2018-01-29 09:57:19 +00:00
Andrew Scheller 49964b512c Remove the unnecessary `tr -d '\n'` parts 2018-01-29 09:57:19 +00:00
Andrew Scheller 0b19d6c6ea Add the -s flag to all parted commands 2018-01-29 09:57:19 +00:00
Andrew Scheller b787dd4e66 Always quote echo strings 2018-01-29 09:57:19 +00:00
Andrew Scheller b11de9a8ee Remove unused variables 2018-01-29 09:57:19 +00:00
Andrew Scheller 9d6392d0c2 Use $() for command-substitution instead of backticks 2018-01-29 09:57:19 +00:00
framp 2d2c4d5802 Added installation instructions in README 2018-01-27 20:45:32 +01:00
Drew Bonasera 2aa44f0ecd
Fix error return value
Closes #39
2018-01-27 00:03:04 -05:00
Drew Bonasera e7857ff47c
Merge pull request #38 from lurch/patch-1
Don't allow a directory to be selected
2018-01-21 17:58:56 -05:00
Andrew Scheller 2229ae89a6
Don't allow a directory to be selected
The `-e` flag checks for a file _or_ a directory of that name. The `-f` flag checks only for files.
2018-01-21 22:08:43 +00:00
Drew Bonasera c40b443072
Merge pull request #34 from framps/master
Autorepair e2fsck errors
Closes #32
2018-01-16 00:52:54 -05:00
Drew Bonasera 5a89ff4262
Fix typos in README 2018-01-16 00:40:29 -05:00
framp f83e3f341d Autorepair fsck errors 2017-12-29 18:03:11 +01:00
Drew Bonasera da3bf15dac
Merge pull request #31 from framps/master
Handle filenames with spaces
Fixes #30
2017-12-07 00:17:18 -05:00
framp 4af698457e Accept filenames with spaces 2017-12-02 23:18:54 +01:00
Drew Bonasera ff89083249 Update auto expanding script
It now attempts to use raspi-config and falls back on the (updated) hard coded procedure. This should
help prevent some incompatibility issues.
2017-10-24 03:50:46 -04:00
Drew Bonasera 63b7509ade Merge pull request #15 from shatteredsword/master
reverted to using raspi-config to be used for automatic image resizing
Closes #18
2017-07-15 00:40:28 -04:00
Drew Bonasera e326f426bb Merge pull request #17 from raspberrycoulis/patch-1
Update README.md
2017-07-12 22:34:09 -04:00
Wesley Archer f5246e8898 Update README.md
Added prerequisite about needing Ubuntu 16.10 and upwards to prevent e2fsck and metatdata_csum error message.
2017-07-12 16:35:15 +01:00
Sean Mayo 0b04de8118 reverted to using raspi-config to be used for automatic image resizing
while not having to rely on the raspi-config tool does make the pishrink utility more portable, the raspi-config tool is already properly maintained. rather than being forced to maintain the autosizing utility in this script (which has already been broken for several months due to a linux kernal change), it just makes more sense to not have to rewrite properly maintained code.
2017-07-07 15:53:20 -07:00
Drew Bonasera 9b55197d9b Remove need for raspi-config to be installed on the image for resizing.
Closes #8
2016-10-31 01:42:34 -04:00