menu.lua (8f3b36103b20049e207e64039ad3e99ffb5b51e2) menu.lua (94510c294d831a47ac24d691078d0221493ec68e)
1--
2-- SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3--
4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org>
5-- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
6-- All rights reserved.
7--
8-- Redistribution and use in source and binary forms, with or without

--- 218 unchanged lines hidden (view full) ---

227 multi_user = core.deepCopyTable(multi_user)
228 single_user.name = single_user.alternate_name
229 multi_user.name = multi_user.alternate_name
230 menu_entries.alts = {
231 single_user = single_user,
232 multi_user = multi_user,
233 }
234 else
1--
2-- SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3--
4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org>
5-- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
6-- All rights reserved.
7--
8-- Redistribution and use in source and binary forms, with or without

--- 218 unchanged lines hidden (view full) ---

227 multi_user = core.deepCopyTable(multi_user)
228 single_user.name = single_user.alternate_name
229 multi_user.name = multi_user.alternate_name
230 menu_entries.alts = {
231 single_user = single_user,
232 multi_user = multi_user,
233 }
234 else
235 single_user = alts.single_user
235 single_user = alts.single_user
236 multi_user = alts.multi_user
237 end
238 boot_entry_1, boot_entry_2 = single_user, multi_user
239 else
240 boot_entry_1, boot_entry_2 = multi_user, single_user
241 end
242 return {
243 boot_entry_1,

--- 103 unchanged lines hidden (view full) ---

347 entry_type = core.MENU_SUBMENU,
348 name = "Boot " .. color.highlight("O") .. "ptions",
349 submenu = menu.boot_options,
350 alias = {"o", "O"},
351 },
352 zpool_checkpoints = {
353 entry_type = core.MENU_ENTRY,
354 name = function()
236 multi_user = alts.multi_user
237 end
238 boot_entry_1, boot_entry_2 = single_user, multi_user
239 else
240 boot_entry_1, boot_entry_2 = multi_user, single_user
241 end
242 return {
243 boot_entry_1,

--- 103 unchanged lines hidden (view full) ---

347 entry_type = core.MENU_SUBMENU,
348 name = "Boot " .. color.highlight("O") .. "ptions",
349 submenu = menu.boot_options,
350 alias = {"o", "O"},
351 },
352 zpool_checkpoints = {
353 entry_type = core.MENU_ENTRY,
354 name = function()
355 rewind = "No"
355 local rewind = "No"
356 if core.isRewinded() then
357 rewind = "Yes"
358 end
359 return "Rewind ZFS " .. color.highlight("C") ..
360 "heckpoint: " .. rewind
361 end,
362 func = function()
363 core.changeRewindCheckpoint()

--- 185 unchanged lines hidden ---
356 if core.isRewinded() then
357 rewind = "Yes"
358 end
359 return "Rewind ZFS " .. color.highlight("C") ..
360 "heckpoint: " .. rewind
361 end,
362 func = function()
363 core.changeRewindCheckpoint()

--- 185 unchanged lines hidden ---