main.c (edb26097cb6416adb89b54c830d36c0ead3ca64c) | main.c (362322294045943703e03dee263bbc237002525c) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 376 unchanged lines hidden (view full) --- 385 new_currdev.dd.d_unit = 0; 386 } 387 388#ifdef LOADER_ZFS_SUPPORT 389 if (new_currdev.dd.d_dev->dv_type == DEVT_ZFS) 390 init_zfs_boot_options(devformat(&new_currdev.dd)); 391#endif 392 | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 376 unchanged lines hidden (view full) --- 385 new_currdev.dd.d_unit = 0; 386 } 387 388#ifdef LOADER_ZFS_SUPPORT 389 if (new_currdev.dd.d_dev->dv_type == DEVT_ZFS) 390 init_zfs_boot_options(devformat(&new_currdev.dd)); 391#endif 392 |
393 env_setenv("currdev", EV_VOLATILE, i386_fmtdev(&new_currdev), | 393 env_setenv("currdev", EV_VOLATILE, devformat(&new_currdev.dd), |
394 i386_setcurrdev, env_nounset); | 394 i386_setcurrdev, env_nounset); |
395 env_setenv("loaddev", EV_VOLATILE, i386_fmtdev(&new_currdev), | 395 env_setenv("loaddev", EV_VOLATILE, devformat(&new_currdev.dd), |
396 env_noset, env_nounset); 397} 398 399COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); 400 401static int 402command_reboot(int argc, char *argv[]) 403{ --- 63 unchanged lines hidden --- | 396 env_noset, env_nounset); 397} 398 399COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); 400 401static int 402command_reboot(int argc, char *argv[]) 403{ --- 63 unchanged lines hidden --- |