Commit Graph

  • 41655ea14b fix all golint warnings for cmd/snappy-go/ Michael Vogt 2015-02-13 09:27:38 +01:00
  • f55791c62e fix another lint warning (but not fully happy with the result yet) Michael Vogt 2015-02-13 09:04:47 +01:00
  • 8c8c67aa36 split run-checks.sh from .tarmac.sh to make it easy for developers to run before sending to tarmac Michael Vogt 2015-02-13 08:44:52 +01:00
  • 1d8b8f98ac .tarmac.sh: get "go vet" if its not installed Michael Vogt 2015-02-13 08:34:22 +01:00
  • d89149b68b simplify for Sergio Michael Vogt 2015-02-12 22:35:24 +01:00
  • 6c1110dd87 final fixes to make .tarmac.sh run Michael Vogt 2015-02-12 22:15:27 +01:00
  • 3a42f008f7 update cmd/snappy-go too Michael Vogt 2015-02-12 22:06:50 +01:00
  • 168c284149 update snappy Michael Vogt 2015-02-12 22:03:12 +01:00
  • e8bc866cc6 more golint fixes Michael Vogt 2015-02-12 21:56:41 +01:00
  • c1adb20be4 fix more golint comments Michael Vogt 2015-02-12 20:24:51 +01:00
  • 4bbd68fbab fix a bunch of golint warnings Michael Vogt 2015-02-12 19:13:42 +01:00
  • 10f2108fe6 add golint to .tarmac.sh Michael Vogt 2015-02-12 18:47:19 +01:00
  • 2a47e4223b add "go vet" and fix the bugs it find (thanks James!) Michael Vogt 2015-02-12 17:52:12 +01:00
  • 3085187306 unexport getBootloader() and move it into bootloader.go Michael Vogt 2015-02-12 17:43:31 +01:00
  • 305080e8e6 add TestGetBootloaderWithUboot() Michael Vogt 2015-02-12 17:26:17 +01:00
  • 553b35c2db fix failing test Michael Vogt 2015-02-12 17:25:13 +01:00
  • 6e192cdeb6 add (failing) test for GetBootloader() Michael Vogt 2015-02-12 17:05:41 +01:00
  • 38c1b32b47 Bump debian/changelog version number. Michael Vogt 2015-02-12 09:11:51 -05:00
  • a116f69ff7 merged lp:snappy Michael Vogt 2015-02-12 15:07:17 +01:00
  • 1176ebd8e1 Tests (and the needed mocking) for the GetBootVar() calls and consolidates the implementations. Michael Vogt 2015-02-12 09:03:17 -05:00
  • 10d5aa1ace rename NextBootIsOther() -> IsNextBootOther() as suggested by Sergio Michael Vogt 2015-02-12 14:58:25 +01:00
  • f2c7cd135f dependencies.tsv: fix empty line Michael Vogt 2015-02-12 14:54:18 +01:00
  • a7728872d1 debian/changelog: bump version for the autobuild recipe Michael Vogt 2015-02-12 13:51:57 +01:00
  • 968691e7cd merged lp:snappy Michael Vogt 2015-02-12 13:49:34 +01:00
  • c42a47866c address review points (thanks Sergio) Michael Vogt 2015-02-12 13:46:18 +01:00
  • f88c07cd61 Add tests for the bootloader_{grub,uboot} code. Michael Vogt 2015-02-12 07:32:11 -05:00
  • 0f4ce2bbff merged lp:~mvo/snappy/snappy-bootloader-tests Michael Vogt 2015-02-12 11:39:26 +01:00
  • d4056f2ee3 fix silly refactor mistake Michael Vogt 2015-02-12 11:38:56 +01:00
  • ed303b514a update dependencies using "$GOPATH/bin/godeps -t ./... > dependencies.tsv" Michael Vogt 2015-02-12 11:05:01 +01:00
  • d258762074 remove unused code Michael Vogt 2015-02-12 09:47:06 +01:00
  • 8feb0baf15 partition/partition.go: fix silly refactor mistake Michael Vogt 2015-02-12 09:45:28 +01:00
  • 7d2d0f5134 use symbolic names in tests and fix return in GetBootloader Michael Vogt 2015-02-12 09:13:11 +01:00
  • 3d6b502e6e address review comments from Sergio, "wrap if" and lowercase errors Michael Vogt 2015-02-12 09:06:20 +01:00
  • 1897711576 make BootloaderName a type Michael Vogt 2015-02-12 08:59:31 +01:00
  • c0fe974e2f FIXME for code duplication Michael Vogt 2015-02-12 08:46:15 +01:00
  • 2b84d08b60 partition/bootloader_grub.go: wrap if as suggested by Sergio Michael Vogt 2015-02-12 08:45:57 +01:00
  • 10b31f828d address first part of review comments from Sergio Michael Vogt 2015-02-12 08:33:28 +01:00
  • 9fd4cd9c93 This branch implements the snap data copy, i.e. the old snap data is copied on upgrade to the new version. Existing data is never overwritten. Michael Vogt 2015-02-11 12:13:42 -05:00
  • fb1716246a There is currently no way to remove a non-active snap. This branch adds this via "snappy remove $name=$version". There is no spec AFAICS for this but I don't think we should block on this and we can always change it once there are more details. Michael Vogt 2015-02-11 12:11:58 -05:00
  • b8313dcdb0 address merge comments by Sergio Michael Vogt 2015-02-11 16:39:49 +01:00
  • 85077a98b4 merged lp:snappy Michael Vogt 2015-02-11 16:20:08 +01:00
  • ccfd6c3901 merged lp:snappy Michael Vogt 2015-02-11 16:18:29 +01:00
  • 55403c4fc8 merged lp:snappy Michael Vogt 2015-02-11 16:18:06 +01:00
  • 37ae65a547 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 16:14:52 +01:00
  • 28d7b5413a Add new "Part.SetActive" API and expose via "snappy set $pkg active=$version". Michael Vogt 2015-02-11 10:11:52 -05:00
  • 233010e614 fix tests when no debsig-verify is installed Michael Vogt 2015-02-11 15:57:42 +01:00
  • 89e825b12a rename snappy.SetProperty() to ParseSetPropertyCmdline() and refactor/add tests Michael Vogt 2015-02-11 15:19:53 +01:00
  • 70291e1bd4 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 15:09:58 +01:00
  • 182d3c233e address review comments from Sergio, many thanks! Michael Vogt 2015-02-11 15:04:06 +01:00
  • 303afb16ca This branch removes some unneeded error log messages which has the nice benefit that the tests are less noisy now. With the latest go-dbus branch I do not get any test spam. Michael Vogt 2015-02-11 09:02:58 -05:00
  • 67ad448ea3 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 14:33:42 +01:00
  • 069b266b77 merged lp:snappy Michael Vogt 2015-02-11 14:32:34 +01:00
  • 1a73d7d680 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 14:31:40 +01:00
  • ddeb11ddc4 make tests less noisy by removing some uneeded error logging Michael Vogt 2015-02-11 14:23:42 +01:00
  • 42c8ddb2ba Revert commit r151 and use lsblk again to find partition layout. Michael Vogt 2015-02-11 08:02:24 -05:00
  • 00d0177bc5 bootloader: name is u-boot Michael Vogt 2015-02-11 13:49:23 +01:00
  • f42c0e00b5 make nextBootIsOther testable and add basic tests for uboot Michael Vogt 2015-02-11 13:47:10 +01:00
  • ceb90427b6 remove panic() and use error instead as this code is consumed by e.g. webdm Michael Vogt 2015-02-11 13:36:42 +01:00
  • 0838ffbfa7 remove currentLabel/otherLabel from BootLoaderType (unused) Michael Vogt 2015-02-11 13:32:07 +01:00
  • 951013d1d5 use short rootfs label in grub as well Michael Vogt 2015-02-11 13:29:09 +01:00
  • f2286056cc snappy/systemimage.go: store s.partition.NextBootIsOther() call result Michael Vogt 2015-02-11 13:15:32 +01:00
  • a20524248b add (failing) test for TestUbootToggleRootFS Michael Vogt 2015-02-11 13:09:11 +01:00
  • 3be5605bff Make naming of helper functions more consistent by using "Snap" instead of "Part". Michael Vogt 2015-02-11 07:02:29 -05:00
  • 64ca63b180 add help for snappy set Michael Vogt 2015-02-11 12:27:19 +01:00
  • 84fd46e7f4 do not crash when SetProperty is called with a empty arg set Michael Vogt 2015-02-11 12:24:41 +01:00
  • 7883dbd58c refactor ToggleRootFS Michael Vogt 2015-02-11 11:53:10 +01:00
  • 52b681386f add test for grub ToggleRootFS Michael Vogt 2015-02-11 11:50:41 +01:00
  • f173ec17f6 start bootloader tests with something trivial Michael Vogt 2015-02-11 11:18:28 +01:00
  • db8b6333bc merged lp:snappy Michael Vogt 2015-02-11 10:46:36 +01:00
  • 0462d348e7 merged lp:snappy Michael Vogt 2015-02-11 10:45:59 +01:00
  • 65ff2e94ac merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 10:44:24 +01:00
  • fc915516b8 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 10:42:17 +01:00
  • 06b08056ad merge lp:snappy and resolve conflicts Michael Vogt 2015-02-11 10:39:19 +01:00
  • 12c9da0e52 copy snap user data too and refactor Michael Vogt 2015-02-11 09:53:28 +01:00
  • c471aece31 implement system data copy on upgrade Michael Vogt 2015-02-11 09:19:48 +01:00
  • 4839a66221 Make AllowUnauthenticated a explicit flag. Michael Vogt 2015-02-11 03:02:14 -05:00
  • 486ca49952 merged lp:~mvo/snappy/set-active-api Michael Vogt 2015-02-11 08:40:06 +01:00
  • 9b73631d36 allow removal of not-active snaps via "snappy remove $name=$version" Michael Vogt 2015-02-11 08:26:11 +01:00
  • 83a1920033 lp:~mvo/snappy/trivial-rename-InstalledSnapByName to get API change Michael Vogt 2015-02-11 08:13:03 +01:00
  • 875ed6a610 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-11 08:11:11 +01:00
  • 51819b4376 merged lp:snappy Michael Vogt 2015-02-11 08:09:27 +01:00
  • 75fc4f1076 snappy/systemimage.go: consider inactive part case in SystemImagePart.SetActive too Michael Vogt 2015-02-11 08:07:04 +01:00
  • c937811268 test for bind-mounting of the /boot/efi partition, compact function Michael Vogt 2015-02-11 07:58:21 +01:00
  • ccc99ed517 snappy/systemimage.go: SetActive() also needs to take NextBootIsOther() into consideration Michael Vogt 2015-02-10 21:36:16 +01:00
  • 7a7592cd41 move SetProperty into "snappy" add test" Michael Vogt 2015-02-10 21:19:27 +01:00
  • 4e380ef920 merge lp:snappy and resolve conflicts Michael Vogt 2015-02-10 17:47:43 +01:00
  • 65d099bfe8 Make set-active error when trying to set a unknown property and add support for implicit "ubuntu-core" adding when no packagename is specificed in "snappy set" Michael Vogt 2015-02-10 17:32:13 +01:00
  • be043843c9 Return a error when trying to remove a snap that is not installed. Michael Vogt 2015-02-10 11:02:14 -05:00
  • c0b86f8504 remove SNAP_ALLOW_UNAUTHENTICATED Michael Vogt 2015-02-10 16:50:16 +01:00
  • a2b7ab355d snappy/remove_test.go: add missing test Michael Vogt 2015-02-10 16:39:53 +01:00
  • 4c069ed595 Fix incorrect return value of RunWithOther() in RW mode. Michael Vogt 2015-02-10 10:02:14 -05:00
  • 5b89a525a7 snappy/remove.go: return a error if no snap can be found for removal Michael Vogt 2015-02-10 14:32:56 +01:00
  • e2db2d0db4 Use absolute path for uboot "snappy-system.txt" Michael Vogt 2015-02-10 08:02:17 -05:00
  • a20d4c69e4 installClick() gets a flag parameter instead of bool to make the semantic more obvious Michael Vogt 2015-02-10 13:52:22 +01:00
  • 39d44567d4 This function renames mount() (and friends) to mountAndAddToGlobalMountList to ensure that it is clear that the function has side-effects beside mounting. It also adds a new "mount()" that just does the mounting. This new function is used in "remountOther()" to fix the test failure that was caused by remountOther() adding mount entries to the global "mounts" list. Michael Vogt 2015-02-10 10:04:35 +01:00
  • d570e3319f partition/partition_test.go: add test that ensures that RunWithOther(RW, f) does proper cleanup Michael Vogt 2015-02-10 09:52:45 +01:00
  • 6fb73ac588 Fix RunWithOther() for the RW case. The problem is that "err" is used in a defer function. This overwrite the already existing "err" from calling f() with either a different error or nil. Which means the actual error never makes it to the caller. Michael Vogt 2015-02-10 09:42:39 +01:00
  • 44c4357294 partition/bootloader_uboot.go: this makes ToggleRootFS work on a uboot system Michael Vogt 2015-02-10 09:21:38 +01:00
  • 22997837f6 revert r151 and use lsblk again to fix regression on beagleBoneBlack Michael Vogt 2015-02-10 08:17:04 +01:00
  • ef6a42c0e8 merged lp:snappy Michael Vogt 2015-02-10 08:14:14 +01:00